Info

この質問は閉じられています。 編集または回答するには再度開いてください。

Which function should I use to plot 2-D color figures out of a XYZ grid data results?

1 回表示 (過去 30 日間)
Leon
Leon 2014 年 1 月 13 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
Below is my code:
[X, Y] = meshgrid(110:0.5:300, -80:0.5:60);
z_grid = griddata (double(lon), double(lat), double(z), X, Y);
So after I finish griding my data, which command I should use to plot a 2-D figure of the z_grid (X, Y are longitude and latitude, respectively) using color scales. I was trying to use "scatter", but after I extract a 3-column data out of the grid and then use "scatter", it drains too much resources for my computer to handle.
Thank you.

回答 (1 件)

Paul
Paul 2014 年 1 月 13 日
Have you tried imagesc?
  3 件のコメント
Paul
Paul 2014 年 1 月 13 日
X and Y should be vectors in imagesc. Use X_vec=110:0.5:300; and Y_vec=-80:0.5:60. Arag_grid should be a matrix of the values at each point.
Leon
Leon 2014 年 1 月 13 日
Thank you.

この質問は閉じられています。

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by