MATLAB: How to generate sinusoidal sine wave using matlab

MATLABMATLAB and Simulink Student Suitesignal processing

I need to plot a sine wave with a frequency of 25 amplitude of 5 time of 0:0.1:1 how do i go about this, thanks

Best Answer

T = 0:0.001:1; % your time vector have a very low sampling frequency
Z = 5*sin(25*2*pi*T);
plot(T, Z)