想用matlab画出函数p=1.013*10^(5)*(288.15/(288.15-k*y))^(-0.03419/k)的曲线,三维图,cleark=linspace(0,0.01,10);y=linspace(0,1,1000);[xx,yy]=meshgrid(k,y);pp=1.013*10^(5)*((288.15)/(288.15-k*y))^((-9.801*0.029)/(k*8.314));说这个代码有
来源:学生作业帮助网 编辑:作业帮 时间:2024/12/01 18:30:15
想用matlab画出函数p=1.013*10^(5)*(288.15/(288.15-k*y))^(-0.03419/k)的曲线,三维图,cleark=linspace(0,0.01,10);y=linspace(0,1,1000);[xx,yy]=meshgrid(k,y);pp=1.013*10^(5)*((288.15)/(288.15-k*y))^((-9.801*0.029)/(k*8.314));说这个代码有
想用matlab画出函数p=1.013*10^(5)*(288.15/(288.15-k*y))^(-0.03419/k)的曲线,三维图,
clear
k=linspace(0,0.01,10);
y=linspace(0,1,1000);
[xx,yy]=meshgrid(k,y);pp=1.013*10^(5)*((288.15)/(288.15-k*y))^((-9.801*0.029)/(k*8.314));说这个代码有错,
想用matlab画出函数p=1.013*10^(5)*(288.15/(288.15-k*y))^(-0.03419/k)的曲线,三维图,cleark=linspace(0,0.01,10);y=linspace(0,1,1000);[xx,yy]=meshgrid(k,y);pp=1.013*10^(5)*((288.15)/(288.15-k*y))^((-9.801*0.029)/(k*8.314));说这个代码有
k和y的维数不同:k=linspace(0,0.01,1000);
后面也要改
[xx,yy]=meshgrid(k,y);pp=1.013*10.^(5).*((288.15)./(288.15-k.*y)).^((-9.801*0.029)./(k.*8.314));
因k的维数是10,而y的维数是1000。那肯定是错了。你可以调整k与y的间隔数值。