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)

来源:学生作业帮助网 编辑:作业帮 时间:2024/04/28 15:22:14
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)

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)
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 ==> inlineeval
Error 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 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{:});
Error in ==> Untitled4 at 2
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)^
>>

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)
总感觉你好像末尾多了一个括号
改成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中一些新手问题,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) MATLAB 中syms matlab 中,syms x 是不是相当于x=sym('x') matlab中syms什么意思? matlab中有关exp的问题之前已经定义了syms x y1 y2了为什么这样就不好使了?是exp的问题吗? matlab中怎么对f=@(x)(x*x)求导呀?不想用syms Matlab中公式的问题syms x;syms z;syms y;x=1:1000;z=1:1000;y=(x.^(1/3).*1.414^(z-1).*0.4)+1;plot3(x,z,y)Error using ==> mpowerMatrix must be square.为什么总是报错,是不是点没有用好?求教这个公式中的点怎么用. matlab问题:syms定义的变量怎么取值?比如我定义了syms x,我想让这个x的范围是[0 10]应该怎么表示 matlab中 syms x; f=log(x) 为什么是错的?然而syms x;f=log2(x)却是对的?为什么、. 两个Matlab问题1.2.第二个若用syms 会出错, 在matlab中如何实现函数的抽样syms x ;y=sin(x)./x;fplot(y,[-10,10]); matlab中syms (['x',num2str(i)])命令最外层小括号与中括号的作用分别是什么 matlab,sym问题,如果定义了符号变量x,syms x然后,x=1;然后我想清除x的赋值,就是输入x的时候得到的结果是>> syms x>> xx =x>> 而不是>> xx =1>> ,怎么办 MATLAB中定义变量的问题比如说可以用syms定义>> syms x11 x12 x13 x14>> syms x21 x22 x23 x24>> syms x31 x32 x33 x34>> syms x41 x42 x43 x44这十六个变量,但是如果定义5阶,6阶等更多矩阵的变量是很麻烦,而且也不灵 matlab求导问题,下面的程序书写哪里有问题 >> syms x >> diff{Rcos(x)+sqrt[L.^2-[Rsin(x)+e].^2}R L字母常量 matlab中分段函数怎么画?syms x tfor t=[0:0.25:11]if t>0&t2&t5&t matlab中syms怎么用?是定义变量么? matlab中syms与sym有什么区别?