Sine Curve plotting using MATLAB codes

preview_player
Показать описание
Here, time is predefined for a slot and sine function is used. Frequency 'f' is taken 50 Hz.
The code is given below:

t=[0;0.1:20] ;
f=10 ;
x=2*pi*f*t ;
a=sin(x) ;
plot(t,a)
grid on
shading interp ;
colorbar;
Рекомендации по теме
welcome to shbcf.ru