matlab运行老是报错.syms L I Rs Rr a Rg Z x yZ=(Rg*(Rs+Rr))^(0.5)a=((Rs+Rr)/Rg)^(0.5)I=1000L=2Rg=15Rs=0.026Rr=0.0001x=0:0.1:2y=-I*Z*Rs*tanh(a*L/2)*cosh(a*x)/(Rs+Rr)+I*Z*Rs*sinh(a*x)/(Rs+Rr)plot(x,y)grid on报错为:Error using ==> plotConversi

来源:学生作业帮助网 编辑:六六作业网 时间:2024/12/19 09:07:50
matlab运行老是报错.symsLIRsRraRgZxyZ=(Rg*(Rs+Rr))^(0.5)a=((Rs+Rr)/Rg)^(0.5)I=1000L=2Rg=15Rs=0.026Rr=0.0001

matlab运行老是报错.syms L I Rs Rr a Rg Z x yZ=(Rg*(Rs+Rr))^(0.5)a=((Rs+Rr)/Rg)^(0.5)I=1000L=2Rg=15Rs=0.026Rr=0.0001x=0:0.1:2y=-I*Z*Rs*tanh(a*L/2)*cosh(a*x)/(Rs+Rr)+I*Z*Rs*sinh(a*x)/(Rs+Rr)plot(x,y)grid on报错为:Error using ==> plotConversi
matlab运行老是报错.
syms L I Rs Rr a Rg Z x y
Z=(Rg*(Rs+Rr))^(0.5)
a=((Rs+Rr)/Rg)^(0.5)
I=1000
L=2
Rg=15
Rs=0.026
Rr=0.0001
x=0:0.1:2
y=-I*Z*Rs*tanh(a*L/2)*cosh(a*x)/(Rs+Rr)+I*Z*Rs*sinh(a*x)/(Rs+Rr)
plot(x,y)
grid on
报错为:
Error using ==> plot
Conversion to double from sym is not possible.
Error in ==> Untitled at 11
plot(x,y)

matlab运行老是报错.syms L I Rs Rr a Rg Z x yZ=(Rg*(Rs+Rr))^(0.5)a=((Rs+Rr)/Rg)^(0.5)I=1000L=2Rg=15Rs=0.026Rr=0.0001x=0:0.1:2y=-I*Z*Rs*tanh(a*L/2)*cosh(a*x)/(Rs+Rr)+I*Z*Rs*sinh(a*x)/(Rs+Rr)plot(x,y)grid on报错为:Error using ==> plotConversi
1.你的程序里是按照符号运算的.符号运算不用plot,好像用要用ezplot的.
2.我不知道你程序里的物理概念,但改一下就行:
%syms L I Rs Rr a Rg Z x y
I=1000
L=2
Rg=15
Rs=0.026
Rr=0.0001
Z=(Rg*(Rs+Rr))^(0.5)
a=((Rs+Rr)/Rg)^(0.5)
x=0:0.1:2
y=-I*Z*Rs*tanh(a*L/2)*cosh(a*x)/(Rs+Rr)+I*Z*Rs*sinh(a*x)/(Rs+Rr)
plot(x,y)
grid on

matlab运行老是报错.syms L I Rs Rr a Rg Z x yZ=(Rg*(Rs+Rr))^(0.5)a=((Rs+Rr)/Rg)^(0.5)I=1000L=2Rg=15Rs=0.026Rr=0.0001x=0:0.1:2y=-I*Z*Rs*tanh(a*L/2)*cosh(a*x)/(Rs+Rr)+I*Z*Rs*sinh(a*x)/(Rs+Rr)plot(x,y)grid on报错为:Error using ==> plotConversi 系统老是报错, 求大侠帮我看下这个matlab程序,一直报错.%syms L I Rr Z a Rg1 Rs1 x cI=1000L=2Rr=0.01Z=(Rg1.*(Rs1+Rr))^(0.5)a=((Rs1+Rr)/Rg1)^(0.5)Rg1=15.*(0 matlab高手求助,Conversion to double from sym is not possible.syms l;syms t;syms Ommiga_0;syms Ommiga_3;syms d;syms tau;syms ommiga_1;syms ommiga_3;syms U_0;k_1=pi/2/l;k_3=3*pi/2/l;k_2=2*pi/2/l;g=9.8ommiga_1=sqrt(g*k_1*tanh(k_1)*d);ommiga_3=sqrt(g matlab 符号运算的问题syms x(t) ;y=x*x;请问怎么求 y对x的导数 diff(y,x) 报错了 用matlab画B样条曲面报错~function l= BSplineMian(p00,p01,p02,p03,p10,p11,p12,p13,p20,p21,p22,p23,p30,p31,p32,p33)syms u;syms v;a = [u^3 u^2 u 1];m = 1/6*[1 3 -3 1;3 -6 3 0;-3 0 3 0;1 4 1 0];p = [p00 p01 p02 p03;p10 p11 p12 p13;p20 p21 p22 p2 MATLAB 中syms MATLAB 程序老是报错,function CGG(x0,y0,eps)syms x ;syms y;k=0;X=[x,y];X0=[x0,y0];Q=[1 1;1 2];f=inline('x^2+2*y^2+2*x*y','x','y');%f=1/2*X*Q*X';fx=diff(f,x);fy=diff(f,y);G0=[subs(fx,{x,y},X0),subs(fx,{x,y},X0)];% j=jacobian(f,X);% G0=subs(j,X,X0 求大神解答matlab矩阵问题我想求一个矩阵微分方程clc;clear;syms x1(t) x2(t) x;x=[x1;x2];c=[1 0;0 1];p1=1;p2=1;p=[p1;p2];dsolve(c*diff(x)==p,x1(0)==0,x2(0)==0)运行之后报错:CAT arguments dimensions are not consistent.我想问 matlab 求积分报错syms m b a ky=((2*m*(0.15*tan(b)+a)^2/((15-100/39.27^2)*((k(1)+k(2))*(0.15*tan(b)-l*sin(b))/(m*(0.15*tan(b)*sin(b)+a)))^0.5 )))*((k(1)+k(2))*(0.15*(sec(b))^2-l*cos(b))*(0.15*tan(b)*sin(b)+a)-0.15*(0.15*tan(b)-l*sin(b))*((sec(b)) 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 x;s=solve(x^3+cos(x)) 为什么结果总是[ empty sym ]啊, Matlab中syms构建函数后用fsolve求解例如:syms xy=x^2-1;fsolve(y,-2)结果报错:Error using ==> lsqfcnchk at 111If FUN is a MATLAB object,it must have an feval method.Error in ==> fsolve at 184funfcn = lsqfcnchk(FUN,'fsolve',length(varar matlab中syms什么意思? matlab解一元三次方程写完代码运行出错,我写的代码如下:syms xL = 1:100;for i=1:length(L)x0 = solve('0.1125*tan(11*pi/36)*L(i)*x^3 - (tan(5*pi/36) + tan(pi/6))*(0.1125*tan(2*pi/9)*tan(11*pi/36)*L(i) + 1)*x^2 + (0.1125*tan(11*pi/36 为什么在matlab中输入syms x f=sym('x/(cos(x))^2') y(1)=diff(f)报错:Error using ==> diffNot enough input arguments. matlab运行后出现:Error:Unbalanced or unexpected parenthesis or bracket.怎么修改syms z;r=250;l=500;for N=1:30c=N/pi/r^2;b=acos((l-z)./sqrt(l^2+r^2-2*l.*z));a=r^2.*(acos(z/r)-z.*sqrt(r^2-z.^2)/r)+(l^2+r^2-2*l*z).*(b-sqrt((r^2-z.^2)./(l^2+r^2-2 matlab Warning:Warning:FFTN on values of class UINT8 is obsolete.Use FFTN(DOUBLE(X)) or FFTN(SINGLE(X)) instead.运行结果报错了如何解决