我想用Matlab绘制摆线,输入命令ezplot('6*x,6*(1-cos(x))',[-10*pi,10*pi]); 为什么总是报错?

错误信息如下

??? Error using ==> inlineeval
Error in inline expression ==> 6.*x,6.*(1-cos(x))
??? Error: Missing MATLAB operator.

Error in ==> inline.feval at 34
INLINE_OUT_ = inlineeval(INLINE_INPUTS_, INLINE_OBJ_.inputExpr, INLINE_OBJ_.expr);

Error in ==> specgraph\private\ezplotfeval at 54
z = feval(f,x(1));

Error in ==> ezplot>ezplot1 at 434
[y,f,loopflag] = ezplotfeval(f,x);

Error in ==> ezplot at 140
[hp,cax] = ezplot1(cax,f{1},vars,labels,args{:});
------------------------------------------------
写错了,是ezplot('6*(t-sin(t)),6*(1-cos(t))',[-10*pi,10*pi]);
依然报上面的错误。

ezplot('6*(1-cos(6*x))',[-10*pi,10*pi]);

追问

你这只是一条显式的三角函数曲线。
我要画的是一个参数方程
ezplot('6*(x-sin(x),6*(1-cos(x))',[-10*pi,10*pi]);

ezplot不是有 ezplot('(x,y)',[tmin,tmax]) 这种形式吗?

追答

%% ezplot(funx,funy,[tmin,tmax])

ezplot('6*(x-sin(x))','6*(1-cos(x))',[-10*pi,10*pi]);

温馨提示:答案为网友推荐,仅供参考

相关了解……

你可能感兴趣的内容

本站内容来自于网友发表,不代表本站立场,仅表示其个人看法,不对其真实性、正确性、有效性作任何的担保
相关事宜请发邮件给我们
© 非常风气网