Why does this code to plot a sine function not produce a periodic plot of a sine function, as expected?
>> f = 1000;>> t = 0:0.01:10;>> y = sin(2*pi*f*t);>> plot(t,y);
accuracyarithmeticdoublefloatingMATLABplotplottingpointprecisionsinsine
>> f = 1000;>> t = 0:0.01:10;>> y = sin(2*pi*f*t);>> plot(t,y);
Best Answer