函数文件
function y=exm060101(x)% y=exm060101(x) Function calculate of example 6.1-1
n=length(x);
for k=1:n
if x(k)<-1
y(k)=x(k);
elseif x(k)>=1
y(k)=exp(1-x(k));
else
y(k)=x(k)^3;
end
end
??? function y=exm060101(x)
|
Error: Function definitions are not permitted at the prompt or in scripts.
怎么会出现情况,那位高手指点一下,谢谢!!!!!!!!