rameshrai
Full Member level 3
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