plot surface data file not a matrix

2 ビュー (過去 30 日間)
Hossein
Hossein 2013 年 11 月 18 日
回答済み: Walter Roberson 2013 年 11 月 18 日
Hi,
I have a file, containing 762 lines and 3 columns.
The columns are x,y,z respectively and I want to plot z on x,y grid which is a surface!
I know that I can use surf but in my case 762 z values cannot be reshaped to a matrix.
If I reshape it to 20*39 then I would lack 18 lines. (20*39)-762=18
Is there a way I can plot it directly?

回答 (1 件)

Walter Roberson
Walter Roberson 2013 年 11 月 18 日
TriScatteredInterp for older MATLAB, griddedinterpolant for newer MATLAB.

カテゴリ

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