mesh函数画图出错,求大神帮忙看代码哪里有错。
Afficher commentaires plus anciens
delta=1.1;
m=4495;
g=9.81;
f=0.012;
Cd=0.72;
A=4.872;
eta=0.93;
ut=30:10:80;
t=5:1:10;
[X,Y]=meshgrid(ut,t);
Z = (X/(3600*eta))*((delta*m*X)/(7.2*Y) + m*g*f/1.5 + Cd*A*X*X/52.875);
mesh(X,Y,Z);
grid on;
axis([30 80 5 10 0 200]);
运行结果:
Z =
NaN NaN NaN NaN NaN NaN
NaN NaN NaN NaN NaN NaN
NaN NaN NaN NaN NaN NaN
NaN NaN NaN NaN NaN NaN
NaN NaN NaN NaN NaN NaN
NaN NaN NaN NaN NaN NaN
>> acctime3d
Warning: Matrix is singular to working precision.
> In acctime3d at 12
Réponses (0)
Catégories
En savoir plus sur NaNs dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!