フィルターのクリア

Use of Surf with measured data

1 回表示 (過去 30 日間)
Naftali Herscovici
Naftali Herscovici 2013 年 6 月 26 日
回答済み: Image Analyst 2014 年 9 月 9 日
Hello,
I have measured data x,y,z that I can represent it in any format. I see a lot of example of using surf with formulas and such, but I could not find any examples of using surf with measured data. I would like to know how to organize the data in files, so I can use surf correctly.
Thanks
  1 件のコメント
Tom
Tom 2013 年 6 月 26 日
Is your Z a matrix or a vector?

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

回答 (2 件)

Yasushi Yamakawa
Yasushi Yamakawa 2014 年 9 月 9 日
Easily Example in interactive command.
you import data.xls to variavle x,y,z.(data.xls is measured data file.) X=reshape(x,15,10) Y=reshape(y,15,10) Z=reshape(z,15,10) surf(X,Y,Z) view(0,90) datacursormode on
you can see figure with measured data.
if you make more coll, use meshgrid command,colorbar and callback function.

Image Analyst
Image Analyst 2014 年 9 月 9 日
I know this is really old but since someone answered, I thought I would too. If the x, y, and z are not on a regular grid, you can use scatteredInterpolant() to create a regular grid from the more or less random locations of the (x,y) coordinates. It will give you z on a regular grid which you can then pass in to surf().

カテゴリ

Help Center および File ExchangeConvert Image Type についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by