フィルターのクリア

Does my 3D surface plot look ok?

2 ビュー (過去 30 日間)
Philip
Philip 2013 年 12 月 4 日
コメント済み: Philip 2013 年 12 月 4 日
I have a feeling that my graph doesnt look right (not clear and concise enough), but it might well be, just need to settle my mind about it.
I am plotting Wind Chill against Temperature (Celsius) and Windspeed (m/s).
This is my code I have used
%My Matrixes, z2 is the windspeed, z3 is the temperature%
z2 = [0,1.50000000000000,3,4.50000000000000,6,7.50000000000000,9;10.5000000000000,12,13.5000000000000,15,16.5000000000000,18,19.5000000000000;21,22.5000000000000,24,25.5000000000000,27,28.5000000000000,30];
z3 = [-50,-45,-40,-35,-30,-25,-20;-15,-10,-5,0,5,10,15;20,25,30,35,40,45,50];
%my Meshgrid%
[X, Y] = meshgrid (z3, z2);
&Calculations to convert C to F and m/s to mph to fit into my formula%
TEST1TEMP = X * 9/5 + 32;
TEST2SPEED = Y * 2.23693629;
&Wind Chill Formula%
Z = 0.0817.*((3.71.*sqrt(TEST2SPEED))-0.25.*TEST2SPEED+5.81).*(TEST1TEMP-91.4)+91.4;
&My surf code%
surf (X, Y, Z) xlabel ('Temperature (C)') ylabel ('Wind Speed (m/s)') zlabel ('Wind Chill')
This is how my figure looks
I worry it looks a little all over the place, would appreciate guidance on if it looks ok, or if not how to sort it. Thankyou very much Phil

採用された回答

sixwwwwww
sixwwwwww 2013 年 12 月 4 日
may be you can make it look better like this:
[X, Y] = meshgrid (-50:0.5:50, 0:0.5:30);
TEST1TEMP = X * 9/5 + 32;
TEST2SPEED = Y * 2.23693629;
Z = 0.0817.*((3.71.*sqrt(TEST2SPEED))-0.25.*TEST2SPEED+5.81).*(TEST1TEMP-91.4)+91.4;
surf (X, Y, Z), xlabel ('Temperature (C)'), ylabel ('Wind Speed (m/s)'), zlabel ('Wind Chill'), view([-120 45]), colorbar
  3 件のコメント
Sean de Wolski
Sean de Wolski 2013 年 12 月 4 日
You could turn off the 'EdgeColor' (black lines) of the surf by setting it to 'none' or use a mesh() instead of a surface (I typically recommend this for dense data.
Philip
Philip 2013 年 12 月 4 日
Thanks Sean, will try that out when i get a moment

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeSurface and Mesh Plots についてさらに検索

製品

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by