I want to execute this code but there is an error in function command,please modify this program to get the output

1 次查看(过去 30 天)
function[X]= generateSin(a,f,ph,t,Fs)
f=5;
a=3;
ph=pi/2;
Fs=300;
T=1/Fs;
L=1000;tmax=L*T;
t=0:T:tmax-T;
X=a*sin(2*pi*t*f+ph);
figure()
plot(t,X)
end

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Get Started with MATLAB 的更多信息

产品

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by