rameshrai
Full Member level 3
- Joined
- Aug 16, 2010
- Messages
- 158
- Helped
- 7
- Reputation
- 14
- Reaction score
- 7
- Trophy points
- 1,298
- Activity points
- 2,272
Hi,
I don't understand why the following simple sine wave code displays different waveform when simulated repeatedly?
fc=10;
fs=2*fc;
ts=1/fs;
t=0:ts:50;
x=sin(2*pi*fc*t);
plot(t,x);
the first run showed a correct sine wave, when i rerunned the code I get the following waveform-
View attachment sinewave.bmp
thanks
I don't understand why the following simple sine wave code displays different waveform when simulated repeatedly?
fc=10;
fs=2*fc;
ts=1/fs;
t=0:ts:50;
x=sin(2*pi*fc*t);
plot(t,x);
the first run showed a correct sine wave, when i rerunned the code I get the following waveform-
View attachment sinewave.bmp
thanks