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/17 18:58:58

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



希望能帮到你!