<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>John Roach &#187; john roach</title>
	<atom:link href="http://johnroach.info/tag/john-roach/feed/" rel="self" type="application/rss+xml" />
	<link>http://johnroach.info</link>
	<description>Coding for life</description>
	<lastBuildDate>Sun, 27 Jun 2010 08:05:52 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>A pretty picture</title>
		<link>http://johnroach.info/2010/05/a-pretty-picture/</link>
		<comments>http://johnroach.info/2010/05/a-pretty-picture/#comments</comments>
		<pubDate>Thu, 13 May 2010 19:27:05 +0000</pubDate>
		<dc:creator>John Roach</dc:creator>
				<category><![CDATA[just fun]]></category>
		<category><![CDATA[flower]]></category>
		<category><![CDATA[john roach]]></category>
		<category><![CDATA[picture]]></category>

		<guid isPermaLink="false">http://johnroach.info/?p=275</guid>
		<description><![CDATA[Hi. Got to take a photo that I actually am proud of. I hope you like it. If you are viewing this in a link in a other than my own site you may not able to see the bigger picture. Please view this in my own site. (http://johnroach.info/2010/05/a-pretty-picture/)]]></description>
			<content:encoded><![CDATA[<p>Hi. Got to take a photo that I actually am proud of. I hope you like it.</p>
<p style="text-align: center;"><a rel="lightbox[2010-4-4-22-24-11]" href="http://lh5.ggpht.com/_ays0jYAPwio/S-xQwnd6VXI/AAAAAAAAAy0/scthzM92tF8/IMG_0257.JPG?imgmax=800"><img class="pie-img" style="margin: 10px 10px 10px 10px;" src="http://lh5.ggpht.com/_ays0jYAPwio/S-xQwnd6VXI/AAAAAAAAAy0/scthzM92tF8/IMG_0257.JPG?imgmax=160" alt="IMG_0257.JPG" width="160" height="120" /></a></p>
<p style="text-align: left;"><a rel="lightbox[2010-4-4-22-23-23]" href="http://lh5.ggpht.com/_ays0jYAPwio/S-xQwnd6VXI/AAAAAAAAAy0/scthzM92tF8/IMG_0257.JPG?imgmax=800"><img class="pie-img" style="margin: 10px 10px 10px 10px;" src="http://lh5.ggpht.com/_ays0jYAPwio/S-xQwnd6VXI/AAAAAAAAAy0/scthzM92tF8/IMG_0257.JPG?imgmax=null" alt="IMG_0257.JPG" width="0" height="0" /></a>If you are viewing this in a link in a other than my own site you may not able to see the bigger picture. Please view this in my own site. (<a href="http://johnroach.info/2010/05/a-pretty-picture/">http://johnroach.info/2010/05/a-pretty-picture/</a>)</p>
]]></content:encoded>
			<wfw:commentRss>http://johnroach.info/2010/05/a-pretty-picture/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Blogger Is Closing Down FTP service&#8230; So what&#8230; I&#8217;ve got WP</title>
		<link>http://johnroach.info/2010/02/blogger-is-closing-down-ftp-service-so-what-ive-got-wp/</link>
		<comments>http://johnroach.info/2010/02/blogger-is-closing-down-ftp-service-so-what-ive-got-wp/#comments</comments>
		<pubDate>Tue, 02 Feb 2010 21:01:15 +0000</pubDate>
		<dc:creator>John Roach</dc:creator>
				<category><![CDATA[just fun]]></category>
		<category><![CDATA[tech news]]></category>
		<category><![CDATA[Add new tag]]></category>
		<category><![CDATA[Blog]]></category>
		<category><![CDATA[Blogger]]></category>
		<category><![CDATA[blogger.com]]></category>
		<category><![CDATA[FTP]]></category>
		<category><![CDATA[Google]]></category>
		<category><![CDATA[HP Labs]]></category>
		<category><![CDATA[john roach]]></category>
		<category><![CDATA[LiveJournal]]></category>
		<category><![CDATA[New media]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[Wordpresss]]></category>

		<guid isPermaLink="false">http://johnroach.info/?p=194</guid>
		<description><![CDATA[Image by whiteafrican via Flickr It seems blogger.com is closing down it&#8217;s FTP service. Good thing I already transferred my site to WordPress before hand. My blogging life has been quite the roamer. It seems I like my individuality. My road started with LiveJournal.com. One day I opened my LiveJournal account to find it blocked by [...]]]></description>
			<content:encoded><![CDATA[<div class="zemanta-img" style="display: block; width: 250px; margin: 1em;">
<div>
<dl class="wp-caption alignleft" style="width: 270px;">
<dt class="wp-caption-dt"><img title="A Brief Timeline of Blogging Engines" src="http://farm3.static.flickr.com/2079/2473388923_91caa28db2_m.jpg" alt="A Brief Timeline of Blogging Engines" width="240" height="187" /></dt>
<dd class="wp-caption-dd zemanta-img-attribution" style="font-size: 0.8em;">Image by <span class="mh-hyperlinked"><a href='http://mailhide.recaptcha.net/d?k=01TrC6zV60AN6xJShgnmoriQ==&c=qRGIoEm8o4KnaCBFXfZG5y-ix1FmHQosf_tDsGVQiw5KmKyWN4wAYphFRVvkdbs88ui5F-2qvObqRtyuaofB0g==' onclick="window.open('http://mailhide.recaptcha.net/d?k=01TrC6zV60AN6xJShgnmoriQ==&amp;c=qRGIoEm8o4KnaCBFXfZG5y-ix1FmHQosf_tDsGVQiw5KmKyWN4wAYphFRVvkdbs88ui5F-2qvObqRtyuaofB0g==', '', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=500,height=300'); return false;">whiteafrican</a></span> via Flickr</dd>
</dl>
</div>
</div>
<p>It seems <a class="zem_slink" title="Blogger" rel="homepage" href="http://blogger.com">blogger.com</a> is closing down it&#8217;s <a class="zem_slink" title="File Transfer Protocol" rel="wikipedia" href="http://en.wikipedia.org/wiki/File_Transfer_Protocol">FTP</a> service. Good thing I already transferred my site to <a class="zem_slink" title="WordPress" rel="homepage" href="http://wordpress.org">WordPress</a> before hand.</p>
<p>My blogging life has been quite the roamer. It seems I like my individuality. My road started with <a class="zem_slink" title="LiveJournal" rel="homepage" href="http://www.livejournal.com/">LiveJournal</a>.com. One day I opened my LiveJournal account to find it blocked by the firewall of our school. Some people used to put their nude pictures on their LiveJournal so it was banned.  I got angry at this. Thus I transferred everything to Blogger.com. But guess what! <a class="zem_slink" title="Turkey" rel="wikipedia" href="http://en.wikipedia.org/wiki/Turkey">Turkey</a> blocked Blogger for about four to five months this got me mad. So what I did was make Blogger.com send the info to my FTP host. I even bought a domain for this host. A little coding and voila! My was site was back up and running. However this got me thinking. What if Blogger was totally banned? What would I do than? Hence I started looking for blogging scripts and that is how I met WordPress. I must say I&#8217;m very happy with it. I even integrated <a class="zem_slink" title="Zemanta" rel="homepage" href="http://www.zemanta.com">Zemanta</a> with my browser to bring in even better content. In fact the picture here was found thanks to Zemanta. Anyhow&#8230;</p>
<p>So Blogger is closing down it&#8217;s FTP service. So what. It seems Blogger is thinking the same way. The mail they sent me states :</p>
<blockquote><p>FTP remains a significant drain on our ability to improve Blogger: <strong>only .5% of active blogs are published via FTP </strong>— yet the percentage of our engineering resources devoted to supporting FTP vastly exceeds that.</p></blockquote>
<p>It seems Blogger started cutting out the rotting flesh. The hoards of zombies that try to live on old tech. And this also shows <a class="zem_slink" title="Google" rel="homepage" href="http://google.com">Google</a>&#8216;s business management. If it doesn&#8217;t work, cut it out. Which I believe is one of the best ways to do management. Look at <a class="zem_slink" title="HP Labs" rel="homepage" href="http://www.hpl.hp.com/">HP Labs</a> present condition. Actually look at any big corporation. The only way you can go big is use this kind of thinking. I know&#8230; I know&#8230; It probably meant that the current FTP &#8220;engineering resources&#8221; our out of a job. But still&#8230; The show must go on.</p>
<p>Oh and for the people asking, the snow effect will still be here for a while. It is still snowing in <a class="zem_slink" title="Ankara" rel="geolocation" href="http://maps.google.com/maps?ll=39.8666666667,32.8666666667&amp;spn=0.1,0.1&amp;q=39.8666666667,32.8666666667 (Ankara)&amp;t=h">Ankara, Turkey</a>.</p>
<div class="zemanta-pixie" style="margin-top: 10px; height: 15px;"><img class="zemanta-pixie-img" style="border: none; float: right;" src="http://img.zemanta.com/pixy.gif?x-id=c99e188c-9fcf-45e7-8b29-106108bf4377" alt="" /><span class="zem-script more-related pretty-attribution"><script src="http://static.zemanta.com/readside/loader.js" type="text/javascript"></script></span></div>
]]></content:encoded>
			<wfw:commentRss>http://johnroach.info/2010/02/blogger-is-closing-down-ftp-service-so-what-ive-got-wp/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Setting up a CVS server for the BlackBox project</title>
		<link>http://johnroach.info/2009/12/setting-up-a-cvs-server-for-the-blackbox-project/</link>
		<comments>http://johnroach.info/2009/12/setting-up-a-cvs-server-for-the-blackbox-project/#comments</comments>
		<pubDate>Sun, 13 Dec 2009 09:05:28 +0000</pubDate>
		<dc:creator>John Roach</dc:creator>
				<category><![CDATA[code]]></category>
		<category><![CDATA[ip home automation project]]></category>
		<category><![CDATA[cvs]]></category>
		<category><![CDATA[fedora]]></category>
		<category><![CDATA[fedora 11]]></category>
		<category><![CDATA[fedora 12]]></category>
		<category><![CDATA[john roach]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[open source]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[ssh]]></category>

		<guid isPermaLink="false">http://johnroach.info/?p=172</guid>
		<description><![CDATA[Following the previous posts in this category you will notice that I was using Sourceforge.net as the code hosting. We had to change that because we really didn&#8217;t want to share every bit of code. ( A big sorry to open source developers. I am truly a sell out. ) So had to set up [...]]]></description>
			<content:encoded><![CDATA[<p>Following the previous posts in this category you will notice that I was using Sourceforge.net as the code hosting. We had to change that because we really didn&#8217;t want to share every bit of code. ( A big sorry to open source developers. I am truly a sell out. ) So had to set up CVS server. Never done that before. Should probably add it to my CV. Anyways to business.</p>
<p><strong>How to set up a CVS server using SSH :</strong></p>
<p><span id="more-172"></span><strong>Step 1 : </strong>Install CVS to Fedora. My Fedora distro came with CVS since I chose developer properties during installation. However you may not have it to install simply say;</p>
<p><code>sudo yum install cvs</code></p>
<p><strong>Step 2 : </strong>Create a cvs user and group! Just follow the code below;<br />
<code>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 129px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">useradd cvs</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 129px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">groupadd cvs</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 129px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">mkdir /home/cvs</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 129px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">cvs -d /home/cvs init</div>
<p>useradd cvs</p>
<p>groupadd cvs</p>
<p>mkdir /home/cvs<br />
</code><br />
<strong>Step 3 : </strong>Set permissions and add /home/cvs directory to cvs by using the following;</p>
<p><code>cvs -d /home/cvs init</p>
<p>chown -R cvs:cvs /home/cvs</p>
<p>chmod -R 770 /home/cvs</p>
<p>chmod 700   /home/cvs/CVSROOT</code></p>
<p><strong>Step 4 : </strong>Now you have to add your project to the CVS server. I assume you have a ~/project<strong> </strong>directory on the server. Just follow the following commands;</p>
<p><code>cd ~/project</p>
<p>cvs -d /home/cvs import -m "Initial Import" project myname release</p>
<p>cvs -d /home/cvs checkout project</code></p>
<p><strong>Step 5 :</strong> Add an account to the CVS server (preferably with the same username and password of the user acount you have created for the CVS server that will connect through SSH.) Use the following by replacing &lt;username&gt; and &lt;password&gt;</p>
<p><code>echo "&lt;username&gt;:&lt;password&gt;" &gt;&gt; /home/cvs/CVSROOT/passwd</code></p>
<p><strong>Step 6 :</strong> Make sure you have created a user to connect through SSH give him CVS group permission.</p>
<p>And that is that. It should work. Though you may need to do some changes in <strong>Step 3.</strong> To connect you can simply use the following code or just use Eclipse&#8217;s IDE ( that is what we are using. )</p>
<p><code>export CVS_RSH=ssh</p>
<p>cvs -d :ext:<span class="mh-plaintext">user<a href='http://mailhide.recaptcha.net/d?k=01TrC6zV60AN6xJShgnmoriQ==&amp;c=3zN96vchJY-mvaPqKX17SuYHSc3qpNFIJ0Dgv5wOWkU=' onclick="window.open('http://mailhide.recaptcha.net/d?k=01TrC6zV60AN6xJShgnmoriQ==&amp;c=3zN96vchJY-mvaPqKX17SuYHSc3qpNFIJ0Dgv5wOWkU=', '', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=500,height=300'); return false;" title="Reveal this e-mail address">...</a>@repository.host.name</span>:/home/cvs login</p>
<p>cvs -d :ext:<span class="mh-plaintext">user<a href='http://mailhide.recaptcha.net/d?k=01TrC6zV60AN6xJShgnmoriQ==&amp;c=3zN96vchJY-mvaPqKX17SuYHSc3qpNFIJ0Dgv5wOWkU=' onclick="window.open('http://mailhide.recaptcha.net/d?k=01TrC6zV60AN6xJShgnmoriQ==&amp;c=3zN96vchJY-mvaPqKX17SuYHSc3qpNFIJ0Dgv5wOWkU=', '', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=500,height=300'); return false;" title="Reveal this e-mail address">...</a>@repository.host.name</span>:/home/cvs co moduleName</code></p>
<p>I hope it will be helpful. Peace! </p>
]]></content:encoded>
			<wfw:commentRss>http://johnroach.info/2009/12/setting-up-a-cvs-server-for-the-blackbox-project/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>AM and DSB-SC Modulation and Demodulation of a Periodic Square Wave (Matlab)</title>
		<link>http://johnroach.info/2009/11/am-and-dsb-sc-modulation-and-demodulation-of-a-periodic-square-wave-matlab/</link>
		<comments>http://johnroach.info/2009/11/am-and-dsb-sc-modulation-and-demodulation-of-a-periodic-square-wave-matlab/#comments</comments>
		<pubDate>Sun, 15 Nov 2009 15:49:00 +0000</pubDate>
		<dc:creator>John Roach</dc:creator>
				<category><![CDATA[Coding for fun]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[demodulation]]></category>
		<category><![CDATA[john roach]]></category>
		<category><![CDATA[matlab]]></category>
		<category><![CDATA[modulation]]></category>
		<category><![CDATA[programming]]></category>

		<guid isPermaLink="false">http://johnroach.info/?p=127</guid>
		<description><![CDATA[We once had a homework way back when decided to share it. I edited this script which is in Matlab. I hope you like it. It simply is an analysis of AM and DSB-SC Modulation and Demodulation of a Periodic Square Wave. 1 2 3 4 5 6 7 8 9 10 11 12 13 [...]]]></description>
			<content:encoded><![CDATA[<p>We once had a homework way back when decided to share it. I edited this script which is in Matlab. I hope you like it. It simply is an analysis of AM and DSB-SC Modulation and Demodulation of a Periodic Square Wave.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
</pre></td><td class="code"><pre class="matlab" style="font-family:monospace;"><span style="color: #228B22;">%Amplitude Modulation with a periodic sqare wave and its spectrum analysis</span>
<span style="color: #228B22;">%Show the time domain and frquency domain representation of DSB-AM and</span>
<span style="color: #228B22;">%DSB-SC modulations</span>
<span style="color: #228B22;">%By : John Roach – 6 March 2009</span>
<span style="color: #228B22;">%visit my site at http://johnroach.info</span>
N = <span style="color: #33f;">1024</span>; <span style="color: #228B22;">%N point FFT N&gt;fc to avoid freq domain aliasing</span>
fs = <span style="color: #33f;">4096</span>; <span style="color: #228B22;">% Sample frequency</span>
t = <span style="color: #080;">&#40;</span><span style="color: #33f;">0</span>:N-<span style="color: #33f;">1</span><span style="color: #080;">&#41;</span>/fs;
fc = <span style="color: #33f;">600</span>; <span style="color: #228B22;">%Carrier Frequency</span>
fm2 = <span style="color: #33f;">80</span>; <span style="color: #228B22;">%Message Frequency</span>
Ec = <span style="color: #33f;">20</span>; <span style="color: #228B22;">%Carrier Amplitude</span>
Em2 = <span style="color: #33f;">5</span>; <span style="color: #228B22;">%Messagae Amplitude</span>
<span style="color: #228B22;">% Try changing the message and carrier amplitudes to see the effect in</span>
<span style="color: #228B22;">% DSB-AM modulation</span>
<span style="color: #228B22;">%———Double SideBand Full Carrier Modulation (DSB-FC(AM))</span>
A = Ec + Em2*square<span style="color: #080;">&#40;</span><span style="color: #33f;">2</span>*<span style="color: #0000FF;">pi</span>*fm2*t<span style="color: #080;">&#41;</span>;<span style="color: #228B22;">%Envelope/eliminate the carrier amplitude</span>
m = A.*<span style="color: #0000FF;">sin</span><span style="color: #080;">&#40;</span><span style="color: #33f;">2</span>*<span style="color: #0000FF;">pi</span>*fc*t<span style="color: #080;">&#41;</span>; <span style="color: #228B22;">%to convert DSB-AM to DSB-SC</span>
Mf = <span style="color: #33f;">2</span>/N*<span style="color: #0000FF;">abs</span><span style="color: #080;">&#40;</span><span style="color: #0000FF;">fft</span><span style="color: #080;">&#40;</span>m,N<span style="color: #080;">&#41;</span><span style="color: #080;">&#41;</span>;
f = fs * <span style="color: #080;">&#40;</span><span style="color: #33f;">0</span> : N/<span style="color: #33f;">2</span><span style="color: #080;">&#41;</span> / N;<span style="color: #228B22;">%Since the fft result is symmetrical, only the</span>
<span style="color: #228B22;">%positive half is sufficient for spectral representation</span>
<span style="color: #0000FF;">close</span> <span style="color: #0000FF;">all</span>;
<span style="color: #0000FF;">figure</span><span style="color: #080;">&#40;</span>’Name’,'Time/Fequency domain representations of DSB-AM signals’<span style="color: #080;">&#41;</span>;
<span style="color: #0000FF;">subplot</span><span style="color: #080;">&#40;</span><span style="color: #33f;">2</span>,<span style="color: #33f;">1</span>,<span style="color: #33f;">1</span><span style="color: #080;">&#41;</span>; <span style="color: #228B22;">%Time domain plot</span>
<span style="color: #0000FF;">plot</span><span style="color: #080;">&#40;</span>t<span style="color: #080;">&#40;</span><span style="color: #33f;">1</span>:N/<span style="color: #33f;">2</span><span style="color: #080;">&#41;</span>,m<span style="color: #080;">&#40;</span><span style="color: #33f;">1</span>:N/<span style="color: #33f;">2</span><span style="color: #080;">&#41;</span>,t<span style="color: #080;">&#40;</span><span style="color: #33f;">1</span>:N/<span style="color: #33f;">2</span><span style="color: #080;">&#41;</span>,A<span style="color: #080;">&#40;</span><span style="color: #33f;">1</span>:N/<span style="color: #33f;">2</span><span style="color: #080;">&#41;</span>,’r',t<span style="color: #080;">&#40;</span><span style="color: #33f;">1</span>:N/<span style="color: #33f;">2</span><span style="color: #080;">&#41;</span>,-A<span style="color: #080;">&#40;</span><span style="color: #33f;">1</span>:N/<span style="color: #33f;">2</span><span style="color: #080;">&#41;</span>,’r'<span style="color: #080;">&#41;</span>;
<span style="color: #0000FF;">title</span><span style="color: #080;">&#40;</span>’Time Domain Representation’<span style="color: #080;">&#41;</span>;
<span style="color: #0000FF;">xlabel</span><span style="color: #080;">&#40;</span>’Time’<span style="color: #080;">&#41;</span>; <span style="color: #0000FF;">ylabel</span><span style="color: #080;">&#40;</span>’Modulated signal’<span style="color: #080;">&#41;</span>;
<span style="color: #0000FF;">subplot</span><span style="color: #080;">&#40;</span><span style="color: #33f;">2</span>,<span style="color: #33f;">1</span>,<span style="color: #33f;">2</span><span style="color: #080;">&#41;</span>; <span style="color: #228B22;">%Frequency Domain Plot</span>
<span style="color: #0000FF;">plot</span><span style="color: #080;">&#40;</span>f<span style="color: #080;">&#40;</span><span style="color: #33f;">1</span>:<span style="color: #33f;">256</span><span style="color: #080;">&#41;</span>,Mf<span style="color: #080;">&#40;</span><span style="color: #33f;">1</span>:<span style="color: #33f;">256</span><span style="color: #080;">&#41;</span><span style="color: #080;">&#41;</span>;
<span style="color: #0000FF;">title</span><span style="color: #080;">&#40;</span>’Frequency Domain Representation’<span style="color: #080;">&#41;</span>;
<span style="color: #0000FF;">xlabel</span><span style="color: #080;">&#40;</span>’Frequency <span style="color: #080;">&#40;</span>Hz<span style="color: #080;">&#41;</span>’<span style="color: #080;">&#41;</span>; <span style="color: #0000FF;">ylabel</span><span style="color: #080;">&#40;</span>’Spectral Magnitude’<span style="color: #080;">&#41;</span>;
<span style="color: #228B22;">%———-Double SideBand Suppressed Carrier DSB-SC———-</span>
A = Em2*square<span style="color: #080;">&#40;</span><span style="color: #33f;">2</span>*<span style="color: #0000FF;">pi</span>*fm2*t<span style="color: #080;">&#41;</span> ; <span style="color: #228B22;">%Envelope/eliminate the carrier amplitude</span>
m = A.*<span style="color: #0000FF;">sin</span><span style="color: #080;">&#40;</span><span style="color: #33f;">2</span>*<span style="color: #0000FF;">pi</span>*fc*t<span style="color: #080;">&#41;</span>; <span style="color: #228B22;">%to convert DSB-AM to DSB-SC</span>
Mf = <span style="color: #33f;">2</span>/N*<span style="color: #0000FF;">abs</span><span style="color: #080;">&#40;</span><span style="color: #0000FF;">fft</span><span style="color: #080;">&#40;</span>m,N<span style="color: #080;">&#41;</span><span style="color: #080;">&#41;</span>;
<span style="color: #0000FF;">figure</span><span style="color: #080;">&#40;</span>’Name’,'Time/Fequency domain representations of DSB-SC signals’<span style="color: #080;">&#41;</span>;
<span style="color: #0000FF;">subplot</span><span style="color: #080;">&#40;</span><span style="color: #33f;">2</span>,<span style="color: #33f;">1</span>,<span style="color: #33f;">1</span><span style="color: #080;">&#41;</span>; <span style="color: #228B22;">%Time domain plot</span>
<span style="color: #0000FF;">plot</span><span style="color: #080;">&#40;</span>t<span style="color: #080;">&#40;</span><span style="color: #33f;">1</span>:N/<span style="color: #33f;">2</span><span style="color: #080;">&#41;</span>,m<span style="color: #080;">&#40;</span><span style="color: #33f;">1</span>:N/<span style="color: #33f;">2</span><span style="color: #080;">&#41;</span>,t<span style="color: #080;">&#40;</span><span style="color: #33f;">1</span>:N/<span style="color: #33f;">2</span><span style="color: #080;">&#41;</span>,A<span style="color: #080;">&#40;</span><span style="color: #33f;">1</span>:N/<span style="color: #33f;">2</span><span style="color: #080;">&#41;</span>,’r',t<span style="color: #080;">&#40;</span><span style="color: #33f;">1</span>:N/<span style="color: #33f;">2</span><span style="color: #080;">&#41;</span>,-A<span style="color: #080;">&#40;</span><span style="color: #33f;">1</span>:N/<span style="color: #33f;">2</span><span style="color: #080;">&#41;</span>,’r'<span style="color: #080;">&#41;</span>;
<span style="color: #0000FF;">title</span><span style="color: #080;">&#40;</span>’Time Domain Representation’<span style="color: #080;">&#41;</span>;
<span style="color: #0000FF;">xlabel</span><span style="color: #080;">&#40;</span>’Time’<span style="color: #080;">&#41;</span>; <span style="color: #0000FF;">ylabel</span><span style="color: #080;">&#40;</span>’Modulated signal’<span style="color: #080;">&#41;</span>;
<span style="color: #0000FF;">subplot</span><span style="color: #080;">&#40;</span><span style="color: #33f;">2</span>,<span style="color: #33f;">1</span>,<span style="color: #33f;">2</span><span style="color: #080;">&#41;</span>; <span style="color: #228B22;">%Frequency Domain Plot</span>
<span style="color: #0000FF;">plot</span><span style="color: #080;">&#40;</span>f<span style="color: #080;">&#40;</span><span style="color: #33f;">1</span>:<span style="color: #33f;">256</span><span style="color: #080;">&#41;</span>,Mf<span style="color: #080;">&#40;</span><span style="color: #33f;">1</span>:<span style="color: #33f;">256</span><span style="color: #080;">&#41;</span><span style="color: #080;">&#41;</span>;
<span style="color: #0000FF;">title</span><span style="color: #080;">&#40;</span>’Frequency Domain Representation’<span style="color: #080;">&#41;</span>;
<span style="color: #0000FF;">xlabel</span><span style="color: #080;">&#40;</span>’Frequency <span style="color: #080;">&#40;</span>Hz<span style="color: #080;">&#41;</span>’<span style="color: #080;">&#41;</span>; <span style="color: #0000FF;">ylabel</span><span style="color: #080;">&#40;</span>’Spectral Magnitude’<span style="color: #080;">&#41;</span>;
text<span style="color: #080;">&#40;</span><span style="color: #33f;">15</span>,<span style="color: #33f;">60</span>,’Carrier’<span style="color: #080;">&#41;</span>;
<span style="color: #228B22;">%——————————————————————–</span></pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://johnroach.info/2009/11/am-and-dsb-sc-modulation-and-demodulation-of-a-periodic-square-wave-matlab/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>The site has been updated</title>
		<link>http://johnroach.info/2009/10/the-site-has-been-updated/</link>
		<comments>http://johnroach.info/2009/10/the-site-has-been-updated/#comments</comments>
		<pubDate>Tue, 20 Oct 2009 08:52:56 +0000</pubDate>
		<dc:creator>John Roach</dc:creator>
				<category><![CDATA[Old posts]]></category>
		<category><![CDATA[CNN]]></category>
		<category><![CDATA[john roach]]></category>
		<category><![CDATA[New media]]></category>
		<category><![CDATA[Wordpresss]]></category>

		<guid isPermaLink="false">http://johnroach.info/?p=55</guid>
		<description><![CDATA[Yes, at last. Free of Blogger/Google. I won&#8217;t be blocked!! Thanks to Turkish blocking sites I have decided to carry EVERYTHING to my OWN host. And voila! What you see is what has happened. I am using WordPress for people who are wondering and I know the theme is a little dark. But it is [...]]]></description>
			<content:encoded><![CDATA[<p>Yes, at last. Free of Blogger/Google. I won&#8217;t be blocked!! Thanks to Turkish blocking sites I have decided to carry EVERYTHING to my OWN host. And voila! What you see is what has happened.</p>
<p>I am using WordPress for people who are wondering and I know the theme is a little dark. But it is simple and I like simple.</p>
<p>And just to wet your appetites I shall post a tech related video.</p>
<p><center><script src="http://i.cdn.turner.com/cnn/.element/js/2.0/video/evp/module.js?loc=int&#038;vid=/video/tech/2009/10/14/dcl.neill.twitter.uk.media.cnn" type="text/javascript"></script><noscript>Embedded video from <a href="http://www.cnn.com/video">CNN Video</a></noscript></center></p>
]]></content:encoded>
			<wfw:commentRss>http://johnroach.info/2009/10/the-site-has-been-updated/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
