matlab ? Input argument "t" is undefined.

问题描述:

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;
请问怎么修改具体点谢谢
1个回答 分类:综合 2014-11-14

问题解答:

我来补答
function 这个关键字开始的程序是函数文件,是不能直接运行,需用被调用再调用的文件里面(又称为命令文件)才能运行.
 
 
展开全文阅读
剩余:2000
上一页:算数过程
下一页:enjoy的反义词