Why is Meshgrid Command not working with decimal values?
Show older comments
%Meshgrid command
%This is working fine.
[f,N]=meshgrid(1:2,400:1100);
t=8;
D=10;
F= 1.807068 - (0.045290*t) -(0.042802*D) -(0.000136*N) -(0.160279*f)+ (0.000008*t.*N)+(0.000278*N.*f)+(0.001046*t.*t)+(0.001946*D.*D)+(1.448602*f.*f);
mesh(f,N,F);
%but this not working. All I am changing is putting decimal values of "f"
[f,N]=meshgrid(0.1:0.2,400:1100);
t=8;
D=10;
F= 1.807068 - (0.045290*t) -(0.042802*D) -(0.000136*N) -(0.160279*f)+ (0.000008*t.*N)+(0.000278*N.*f)+(0.001046*t.*t)+(0.001946*D.*D)+(1.448602*f.*f);
mesh(f,N,F);
Accepted Answer
More Answers (0)
Categories
Find more on Graphics Performance in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!