matlab ? Input argument "t" is undefined.function x=ex_3_15(t,D)global D;t(find(t == 0)) = eps;x=sin(t*pi/D)./(t*pi/D)function ex_3_15main()global D;D= 2;b1= -2;b2= 2;t= b1+[0:100]/100*(b2-b1);plot(t, ex_3_15(t,D))运行显示? Input argument "t" is
来源:学生作业帮助网 编辑:六六作业网 时间:2024/10/08 18:15:55
matlab ? Input argument "t" is undefined.function x=ex_3_15(t,D)global D;t(find(t == 0)) = eps;x=sin(t*pi/D)./(t*pi/D)function ex_3_15main()global D;D= 2;b1= -2;b2= 2;t= b1+[0:100]/100*(b2-b1);plot(t, ex_3_15(t,D))运行显示? Input argument "t" is
matlab ? Input argument "t" is undefined.
function x=ex_3_15(t,D)
global D;
t(find(t == 0)) = eps;
x=sin(t*pi/D)./(t*pi/D)
function ex_3_15main()
global D;
D= 2;
b1= -2;
b2= 2;
t= b1+[0:100]/100*(b2-b1);
plot(t, ex_3_15(t,D))
运行显示
? Input argument "t" is undefined.
Error in ==> ex_3_15 at 3
t(find(t == 0)) = eps;
请问怎么修改具体点谢谢
matlab ? Input argument "t" is undefined.function x=ex_3_15(t,D)global D;t(find(t == 0)) = eps;x=sin(t*pi/D)./(t*pi/D)function ex_3_15main()global D;D= 2;b1= -2;b2= 2;t= b1+[0:100]/100*(b2-b1);plot(t, ex_3_15(t,D))运行显示? Input argument "t" is
function 这个关键字开始的程序是函数文件,是不能直接运行,需用被调用再调用的文件里面(又称为命令文件)才能运行.