matlab 中 运行:[x]=solve('90-atan(0.1*x)-atan(0.2*x)=51) 为什么不行啊?

来源:学生作业帮助网 编辑:作业帮 时间:2024/05/15 05:27:39

matlab 中 运行:[x]=solve('90-atan(0.1*x)-atan(0.2*x)=51) 为什么不行啊?
matlab 中 运行:[x]=solve('90-atan(0.1*x)-atan(0.2*x)=51) 为什么不行啊?

matlab 中 运行:[x]=solve('90-atan(0.1*x)-atan(0.2*x)=51) 为什么不行啊?
括号里面的字符串写的不对,后面少了一个 '
改成solve('90-atan(0.1*x)-atan(0.2*x)=51‘)就行了

matlab 中 运行:[x]=solve('90-atan(0.1*x)-atan(0.2*x)=51) 为什么不行啊? clear; x=0:0.1:pi/3; y=exp(-0.5*x)*sin(x+pi/6); trapz(x,y) 在matlab中运行不了! matlab 解非线性方程组'tan(a)-h/l=0','tan(b)-x(i)/(high-sumh(i)-ha)=0','sin(a+b)/sin(a)-1.3333=0','ha-(0.778*tan(a)^4+1-(1-0.778*tan(a)^2)^1.5/1.333)*high*cos(a)/((tan(a)^2+1)^0.5)=0','a','b','h','ha' 四个未知数其他变量已给出用solv MATLAB中plot函数用法MATLAB中输入>> x=1:0.1:3f=sin(x)*(1+x)*log(1+x);plot(x,f)运行出错?Error using ==> mtimesInner matrix dimensions must agree.如果改成>> x=1:0.1:3f=sin(x).*(1+x).*log(1+x);plot(x,f)运行正确,可以绘出图形来. matlab中求最小值f=@(x)(-exp(x));M=fminbnd(f,0,1);运行出来为什么结果不是-e 而是0.9999呢? matlab中f=@(x)x^2; function f=fun(x); f=100*(x(2)-x(1)^2)^2+(1-x(1))^2; x=[1 2] fun(x)在MATLAB中运行后总出错? 在matlab中运行如下程序:x = 0:1:10; y = x.^2-10*x+15; plot(x,y);为什么x后面有一小点:(x.^2);这一小点有什么意义? f=fun(x); f=100*(x(2)-x(1)^2)^2+(1-x(1))^2; x=[1 2]; plot f; 在MATLAB中运行为什么会是错误? matlab运行syms x;s=solve(x^3+cos(x)) 为什么结果总是[ empty sym ]啊, MATLAB中函数图形fplotfunction y=example4_1_10(x)y(:,1)=200*sin(x(:))./x(:);y(:,2)=x(:)^2;y(:,3)=0;fplot('example4_1_10',[-20,20])这个程序运行不出来 怎么回事? 我用matlab中求解偏微分方程用到pdepe,运行显示错误This DAE appears to be of index greater than 1我用matlab中求解偏微分方程用到sol=pdepe(m,@pdefun,@pdeic,@pdebc,x,t);运行显示错误This DAE appears to This DAE appears to matlab解常微分方程MATLAB解常微分方程运行中创建xprim2,将此函数保存在M文件xprim2.m中:function xprim=xprim2(t,x)xprim=[x(1)-0.1*x(1)*x(2)+0.01*t;-x(2)+0.02*x(1)*x(2)+0.04*t];然后调用一个ODE算法和画出解的图形 matlab中x=x0(:,3: MATLAB中,x=0:pi/100: MATLAB中x=zeros(n+1, MATLAB中x1=[x 0 matlab 中size(x,