matlab中一些新手问题,

学习 时间:2026-04-07 19:59:53 阅读:9776
matlab中一些新手问题,syms x y;y =ezplot('1/5*(-2-5/(-125+100*sin(x))*(-20*sin(x)+40+10*(-121*sin(x)^2-100*sin(x)+121+100*sin(x)^3)^(1/2))+5/2*sin(x)/(-125+100*sin(x))*(-20*sin(x)+40+10*(-121*sin(x)^2-100*sin(x)+121+100*sin(x)^3)^(1/2)))*cos(x)/(sin(x)^2-1))');ezplot中的公式是通过matlab运算出来的,但是直接复制上去画图那边却出现如下的问题Error using ==> inlineevalError in inline expression ==> 1./5.*(-2-5./(-125+100.*sin(x)).*(-20.*sin(x)+40+10.*(-121.*sin(x).^2-100.*sin(x)+121+100.*sin(x).^3).^(1./2))+5./2.*sin(x)./(-125+100.*sin(x)).*(-20.*sin(x)+40+10.*(-121.*sin(x).^2-100.*sin(x)+121+100.*sin(x).^3).^(1./2))).*cos(x)./(sin(x).^2-1))Error:Unbalanced or misused parentheses or brackets.Error in ==> inline.feval at 34INLINE_OUT_ = inlineeval(INLINE_INPUTS_,INLINE_OBJ_.inputExpr,INLINE_OBJ_.expr);Error in ==> specgraph\private\ezplotfeval at 54z = 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{:});Error in ==> Untitled4 at 2y =ezplot('1/5*(-2-5/(-125+100*sin(x))*(-20*sin(x)+40+10*(-121*sin(x)^2-100*sin(x)+121+100*sin(x)^3)^(1/2))+5/2*sin(x)/(-125+100*sin(x))*(-20*sin(x)+40+10*(-121*sin(x)^2-100*sin(x)+121+100*sin(x)^3)^>>

最佳回答

单薄的小笼包

明理的老虎

2026-04-07 19:59:53

总感觉你好像末尾多了一个括号改成y=ezplot('1/5*(-2-5/(-125+100*sin(x))*(-20*sin(x)+40+10*(-121*sin(x)^2-100*sin(x)+121+100*sin(x)^3)^(1/2))+5/2*sin(x)/(-125+100*sin(x))*(-20*sin(x)+40+10*(-121*sin(x)^2-100*sin(x)+121+100*sin(x)^3)^(1/2)))*cos(x)/(sin(x)^2-1)');再试试

最新回答共有2条回答

  • 神勇的学姐
    回复
    2026-04-07 19:59:53

    总感觉你好像末尾多了一个括号改成y=ezplot('1/5*(-2-5/(-125+100*sin(x))*(-20*sin(x)+40+10*(-121*sin(x)^2-100*sin(x)+121+100*sin(x)^3)^(1/2))+5/2*sin(x)/(-125+100*sin(x))*(-20*sin(x)+40+10*(-121*sin(x)^2-100*sin(x)+121+100*sin(x)^3)^(1/2)))*cos(x)/(sin(x)^2-1)');再试试

上一篇 the seat is free.you can take it.free能换成spare吗

下一篇 求高手解几道高中数学题,把我讲懂的绝对加分