注册 登录
编程论坛 Matlab

请教如何使用matcom呢?老是出错

Scofield 发布于 2006-12-09 14:45, 1244 次点击

我打开mideva,new一个m文件,里面输入:

function wires

%
% (c) Copyright MathTools Ltd. 1997-1999
%
% Nice wires plot.
%
n=1000;
t=linspace(0,2*pi,n);
x=sin(t).*sin(2*t).*sin(3*t);
y=cos(5*t).*cos(7*t).*cos(11*t);
plot(x,y);

然后点击file里面的“编译dll",但是跳出一对话框,说是只能函数才能这样做。请教到底是怎么回事啊?
第一次用,请高手指教~万分感激!

2 回复
#2
hitzhang2006-12-09 16:06
function wires()
#3
Scofield2006-12-09 16:52

也不行啊,提示:
wire is a script. Only functions can be compiled for this target.

以前没有用过matcom,是不是有什么没有设置啊

谢谢!

1