matlab solve解不出来syms COHadd Cblg N1 N2 N3 N4 N5 N6 N7 Kb COH0 COHsolve('(COHadd - COH)/Cblg = N1*(1/(1 + Kb*COH0) - 1/(1 + Kb*COH)) + N2*(1/(1+Kb*COH0) - 1/(1 + Kb*COH))+ N3*(1/(1 + Kb*COH0)-1/(1 + Kb*COH)) + N4*(1/(1 + Kb*COH0) - 1/(1 + Kb*C

来源:学生作业帮助网 编辑:六六作业网 时间:2024/11/26 11:31:48
matlabsolve解不出来symsCOHaddCblgN1N2N3N4N5N6N7KbCOH0COHsolve(''(COHadd-COH)/Cblg=N1*(1/(1+Kb*COH0)-1/(1+

matlab solve解不出来syms COHadd Cblg N1 N2 N3 N4 N5 N6 N7 Kb COH0 COHsolve('(COHadd - COH)/Cblg = N1*(1/(1 + Kb*COH0) - 1/(1 + Kb*COH)) + N2*(1/(1+Kb*COH0) - 1/(1 + Kb*COH))+ N3*(1/(1 + Kb*COH0)-1/(1 + Kb*COH)) + N4*(1/(1 + Kb*COH0) - 1/(1 + Kb*C
matlab solve解不出来
syms COHadd Cblg N1 N2 N3 N4 N5 N6 N7 Kb COH0 COH
solve('(COHadd - COH)/Cblg = N1*(1/(1 + Kb*COH0) - 1/(1 + Kb*COH)) + N2*(1/(1+Kb*COH0) - 1/(1 + Kb*COH))+ N3*(1/(1 + Kb*COH0)-1/(1 + Kb*COH)) + N4*(1/(1 + Kb*COH0) - 1/(1 + Kb*COH)) + N5*(1/(1 + Kb*COH0) - 1/(1 + Kb*COH)) + N6*(1/(1 + Kb*COH0) - 1/(1 + Kb*COH)) + N7*(1/(1+Kb*COH0) - 1/(1+Kb*COH))','COH')

matlab solve解不出来syms COHadd Cblg N1 N2 N3 N4 N5 N6 N7 Kb COH0 COHsolve('(COHadd - COH)/Cblg = N1*(1/(1 + Kb*COH0) - 1/(1 + Kb*COH)) + N2*(1/(1+Kb*COH0) - 1/(1 + Kb*COH))+ N3*(1/(1 + Kb*COH0)-1/(1 + Kb*COH)) + N4*(1/(1 +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6 + 2*Cblg^2*Kb^2*N5*N7 + Cblg^2*Kb^2*N6^2 + 2*Cblg^2*Kb^2*N6*N7 + Cblg^2*Kb^2*N7^2 + 2*Cblg*Kb*N1 + 2*Cblg*Kb*N2 + 2*Cblg*Kb*N3 + 2*Cblg*Kb*N4 + 2*Cblg*Kb*N5 + 2*Cblg*Kb*N6 + 2*Cblg*Kb*N7 + 1)^(1/2) - COHadd*Kb + Cblg*Kb*N1 + Cblg*Kb*N2 + Cblg*Kb*N3 + Cblg*Kb*N4 + Cblg*Kb*N5 + Cblg*Kb*N6 + Cblg*Kb*N7 - COH0*COHadd*Kb^2 + 1)/(2*(COH0*Kb^2 + Kb))
接着用subs函数代入数据就好了

确实没有错,我的MATLAB是2012B


syms COHadd Cblg N1 N2 N3 N4 N5 N6 N7 Kb COH0 COH real

solve('(COHadd - COH)/Cblg = N1*(1/(1 + Kb*COH0) - 1/(1 + Kb*COH)) + N2*(1/(1+Kb*COH0) - 1/(...

全部展开

确实没有错,我的MATLAB是2012B


syms COHadd Cblg N1 N2 N3 N4 N5 N6 N7 Kb COH0 COH real

solve('(COHadd - COH)/Cblg = N1*(1/(1 + Kb*COH0) - 1/(1 + Kb*COH)) + N2*(1/(1+Kb*COH0) - 1/(1 + Kb*COH))+ N3*(1/(1 + Kb*COH0)-1/(1 + Kb*COH)) + N4*(1/(1 + Kb*COH0) - 1/(1 + Kb*COH)) + N5*(1/(1 + Kb*COH0) - 1/(1 + Kb*COH)) + N6*(1/(1 + Kb*COH0) - 1/(1 + Kb*COH)) + N7*(1/(1+Kb*COH0) - 1/(1+Kb*COH))','COH')

simple(ans)


有两个解

收起

matlab solve解不出来syms COHadd Cblg N1 N2 N3 N4 N5 N6 N7 Kb COH0 COHsolve('(COHadd - COH)/Cblg = N1*(1/(1 + Kb*COH0) - 1/(1 + Kb*COH)) + N2*(1/(1+Kb*COH0) - 1/(1 + Kb*COH))+ N3*(1/(1 + Kb*COH0)-1/(1 + Kb*COH)) + N4*(1/(1 + Kb*COH0) - 1/(1 + Kb*C 如何用MATLAB解复杂一元函数很复杂的函数 用solve解不出来 太长了帖不上来 matlab符号方程组matlab运行不出来,代码如下,syms a b c d esyms Rs Rp Tpeq1=a*Rp-1-Rs+b*Tp;eq2=c*Rp+1-Rs-d*Tp;eq3=-e*Rp+Rs+1;[Rp,Rs,Tp]=solve(eq1,eq2,eq3); matlab解方程 solve 的问题程序很简单:syms L C_t;[L,C_t]=solve('L*(260*1e-12+C_t)=(1/(535*1e3*2*pi))^2','L*(12*1e-12+C_t)=(1/(1605*1e3*2*pi))^2'); 可是出来的L和C_t的值正好反了,这个是为什么,有什么规律吗? '如何用matlab求解 4*x.^4-4*x.^2 =0的解,好像matlab不能计算,至少fzero和solve函数解不出来, matlab解非线性方程组解不出来:代码如下:global b T temp;b=1.2;T=15;temp=1;syms a R;[a,R]=solve('a-(R-b)/2+0.5*((R-b)^2-0.281*R*T)^0.5=0','13*temp-13*(a+b)*a-0.912*T*R=0')运行结果如下:a =-(0.25*(0.281*R*T + (R - 2.0*a)^2 - 1.0 matlab三元一次符号方程组解不出来>> syms va vb vc ra rb rc w ya yb yc rb wb n a b ;>> solve('va=ra*w*cos(ya)-r*wb*cos(n)','vb=rb*w*cos(yb)+r*wb*sin(a+n)','vc=rc*w*cos(yc)+r*wb*sin(b-n)','n,w,wb')Warning:Explicit solution could not be foun 求方程组x^2+y^2=1','x*y=2的解的matlab程序(使用solve)syms x y[x,y]=solve('x^2+y^2=1','x*y=2')得不出结果 matlab solve函数解方程错在哪里输入:syms xf=sym('-x^3+x^2-1=0')v=solve(f)w=double(v)结果:Attempt to execute SCRIPT solve as a function.Error in ==> sym.solve at 49[varargout{1:max(1,nargout)}] = solve(S{:});Error in ==> solve at 3v=so matlab 解方程在解方程的时候用到了syms,然后在求解的时候显示错误了,P.S.例如以下程序syms x;y=x+1;solve('y=0','x') matlab常微分方程组的解法matlab怎么求一阶常微分方程组(solve做不出来的那种) matlab解方程,方程如下,我用solve函数解不出来其中,θ0、θ1、θ2是未知数,其他全是已知 求帮忙 matlab求方程.solve('x+1319.2*exp(-3.973*log(5.15*(10^18)/x/x))-1484.13=0') 怎么解不出来啊 matlab怎么求解字母表示的高次方程,因方程中带有log函数,且底是高次的,solve函数解不出来,有他办法? matlab在解方程组时,如何给变量限定一个范围区间?>> syms SA Tab Tac theta x y;>> eq1=SA^2+1-2*SA*cos(pi/2-theta)-(SA+340*Tac)^2;>> eq2=SA^2+1-2*SA*cos(theta)-(SA+340*Tab)^2;>> [SA,T]=solve(eq1,eq2)这样直接解出来会有四组解, matlab中在解方程组时,如何给其中一个变量限定一个范围区间?>> syms SA Tab Tac theta x y;>> eq1=SA^2+1-2*SA*cos(pi/2-theta)-(SA+340*Tac)^2;>> eq2=SA^2+1-2*SA*cos(theta)-(SA+340*Tab)^2;>> [SA,T]=solve(eq1,eq2)这样直接解出来 matlab求解非线性方程参数解syms i M a b r; M=solve(i*0.1*(1-a*0.01)/(M*(a*0.01-0.01)+0.01)+(1-i*0.1)*(1-b*0.01)/(M*(b*0.01-0.01)+0.01)-(1-r*0.01)/(M*(r*0.01-0.01)+0.01),M)为什么我这个求解出来的一个是数值一个是表达式呢, Matlab 解变限积分方程组 最好有代码因为我的解出来是explicit solution could not be found 谢谢syms x;k=10^-4;t=200;n=1;eq=1/(k*x^n);eqin=int(eq,x,100,x);solve('eqin+t=0','x');