主题
: [MATLAB基础]
matlab 子函数与局部函数的调用
查看单个帖子
2012-07-25, 15:08
#
2
未注册
游客
帖子: n/a
回复: matlab 子函数与局部函数的调用
function y=A1(x)
y=10-(0.4+sinc(4.*x)+1.1*sinc(4.*x+2)+0.8*sin(6.*x-2)+0.7*sinc(6.*x-4));
plot(x,y)
function y=sinc(x)
if( x~=0)
y=sin(pi.*x)/(pi.*x);
else
y=1;
end
点乘
未注册