matlab编程画图.等了好久了!>> syms xx z k D t m q T x;p=(x.^(1-m))*k*D*(t^m)*exp(q*(1/293-1/T))./(1.78*(1-m))-(0.5*z/xx)^2;pp=subs(p,{xx,z,k,D,t,m,q,T},{.2,0.06,7,3*10^-4,0.07,0.4,6100,293});solve(pp)这是我计算程序,我想画出这样

来源:学生作业帮助网 编辑:作业帮 时间:2024/11/28 10:50:49
matlab编程画图.等了好久了!>> syms xx z k D t m q T x;p=(x.^(1-m))*k*D*(t^m)*exp(q*(1/293-1/T))./(1.78*(1-m))-(0.5*z/xx)^2;pp=subs(p,{xx,z,k,D,t,m,q,T},{.2,0.06,7,3*10^-4,0.07,0.4,6100,293});solve(pp)这是我计算程序,我想画出这样
xSnFڅR×HF>\p(:R%Z#nY;~vv1A^"5?!U~!C 놇Ι{Ͻ,I6J.Wk9y򯘼#:[&}= C5 p榸|(Nr\#W'/KeiJDE̱<E=בPVy C P@LD@Ԝ ZF @A+n E1Շi E"gxmYRBsҷ4?Х!CDnć[‡0ٹE2J_!QyN ҽd]tM6GG-hЀwGd1e'[StO&%#+dw"Q{"#GnM7ϓ-(c) 5}TnrNxF?S>sNy$9bkȮWEIZjjj oΖmZ ]3<#N4CQ5cXPW,SQf#(cAif/~W-RE3mKuTB:TMvM EY˥_!xI8&zD<6H>gI.պx

matlab编程画图.等了好久了!>> syms xx z k D t m q T x;p=(x.^(1-m))*k*D*(t^m)*exp(q*(1/293-1/T))./(1.78*(1-m))-(0.5*z/xx)^2;pp=subs(p,{xx,z,k,D,t,m,q,T},{.2,0.06,7,3*10^-4,0.07,0.4,6100,293});solve(pp)这是我计算程序,我想画出这样
matlab编程画图.等了好久了!
>> syms xx z k D t m q T x;
p=(x.^(1-m))*k*D*(t^m)*exp(q*(1/293-1/T))./(1.78*(1-m))-(0.5*z/xx)^2;
pp=subs(p,{xx,z,k,D,t,m,q,T},{.2,0.06,7,3*10^-4,0.07,0.4,6100,293});
solve(pp)
这是我计算程序,我想画出这样一种图,比如:想画x-xx的图,但是要取不同的k值,其他参数都是定值.怎么写程序呀?

matlab编程画图.等了好久了!>> syms xx z k D t m q T x;p=(x.^(1-m))*k*D*(t^m)*exp(q*(1/293-1/T))./(1.78*(1-m))-(0.5*z/xx)^2;pp=subs(p,{xx,z,k,D,t,m,q,T},{.2,0.06,7,3*10^-4,0.07,0.4,6100,293});solve(pp)这是我计算程序,我想画出这样

这样就可以运行了:

syms xx z k D t m q T x;

p=(x.^(1-m))*k*D*(t^m)*exp(q*(1/293-1/T))./(1.78*(1-m))-(0.5*z/xx)^2;

pp=subs(p,{xx,z,k,D,t,m,q,T},{.2,0.06,7,3*10^-4,0.07,0.4,6100,293});

X=double(solve(strcat(char(pp),'=0'))) %求解pp中的x的值

ezplot(char(pp)) %画pp的图,当然你也可以用plot,具体实现方法,请自己看一下帮助.

结果:

X =

  342.1045



希望能帮到你!