フィルターのクリア

Surf plot using meshgrid

1 回表示 (過去 30 日間)
Mohanned Al Gharawi
Mohanned Al Gharawi 2019 年 9 月 23 日
回答済み: Mohanned Al Gharawi 2019 年 9 月 24 日
Hello everybody,
I have a set of snr values for defects in a concrete specimen for different depths as attached in excel sheet. I used the wavelet method to analyze them into several levels.
Anyhow, I need them to be plotted into 3D by using the command surf. Would snybody help me with that?
Thank you in advance.
  2 件のコメント
Rik
Rik 2019 年 9 月 23 日
What have you already tried? Have you read the doc for the surf function?
Mohanned Al Gharawi
Mohanned Al Gharawi 2019 年 9 月 23 日
I'm trying to plot a 3D x-axis represents the defect depths, y-axis is the levels and the z-direction has the values of snr.
Thanks

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

採用された回答

Shubham Gupta
Shubham Gupta 2019 年 9 月 24 日
Try this :
snr_data = xlsread('snr values.xlsx');
depth = [1,2,3,5];
level = 1:7;
depth_mesh = meshgrid(depth,level).';
level_mesh = meshgrid(level,depth);
surf(depth_mesh,level_mesh,snr_data)
I hope it helps !

その他の回答 (1 件)

Mohanned Al Gharawi
Mohanned Al Gharawi 2019 年 9 月 24 日
Thank you so much, it worked.

カテゴリ

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