MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi
Learn moreOpportunities for recent engineering grads.
Apply TodayMATLAB Central > MATLAB Newsreader > create a sine wave 

Hi, 
"Paul " <pvankaam86@hotmail.com> wrote in message <htm7op$ss3$1@fred.mathworks.com>... 
It looks OK to me. You expect y to be zero everywhere, and so it is, apart from some arithmetic rounding errors. (If you sample a pure 10kHz signal at 20kHz, and you start at 0 phase, you sample the zerocrossings.) 
try this................ 
On 5/21/2012 11:49 AM, Gaurav wrote: 
"Nasser M. Abbasi" wrote in message <jpe0is$a59$1@speranza.aioe.org>... 
"Nasser M. Abbasi" wrote in message <jpe0is$a59$1@speranza.aioe.org>... 
No tags are associated with this thread.
A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.
Anyone can tag a thread. Tags are public and visible to everyone.