Ältere Kommentare anzeigen
clear
clc
[X,Y]=meshgrid(log(5*10.^5):100000:log(10.^7),log(0.6):10:log(2000));
Z=log(((0.037.*(X.^0.8).*Y)/(1+(2.443.*X.^-0.1).*((Y.^2/3)-1))));
mesh(X,Y,Z);
grid on
hold on
5 Kommentare
madhan ravi
am 22 Jul. 2018
Because x and y has to be vectors.
Aquatris
am 22 Jul. 2018
The expression
log(5*10.^5):100000:log(10.^7)
gives a scalar. I think you defined your x and y range wrong.
KALYAN ACHARJYA
am 22 Jul. 2018
There should be one variable, Its creates the vector.
@Hazwan Arief: I've formatted your code today. Please use the "{} Code" button in the future.
Whenever you get an error message, post it in the forum to show the readers, why you assume that there is something wrong.
Error using mesh (line 83)
Z must be a matrix, not a scalar or vector.
Are you aware that Y.^2/3 is (Y.^2) / 3?
Hazwan Arief
am 22 Jul. 2018
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu NaNs finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!