Convert from XYZ surface plot to just Z surface plot
1 回表示 (過去 30 日間)
古いコメントを表示
I have a data set consisting of xcoord, ycoord, and density in vectors, exported from Fluent. I would like to be able to view the data as an m x n matrix, rather than as a surface plot, surf(X,Y,Z), so that I can access specific elements of that matrix directly. (i.e., I would like to be able to say density(ii,jj) = ....). I've tried many methods for doing this, and all have resulted in a skewed looking plot.
1 件のコメント
Walter Roberson
2018 年 10 月 20 日
編集済み: Walter Roberson
2018 年 10 月 20 日
view(2); for the viewing.
griddata for the array of values.
採用された回答
Star Strider
2018 年 10 月 20 日
You did not say what you have tried, and what did not work.
Consider:
Z = randn(100);
figure
surf(Z)
view(0,90)
That produces a (100x100) matrix, and the view call lets you look at it from the top, rather than from the side.
4 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Surface and Mesh Plots についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!