Surf plot using meshgrid
5 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Mohanned Al Gharawi
am 23 Sep. 2019
Beantwortet: Mohanned Al Gharawi
am 24 Sep. 2019
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 Kommentare
Akzeptierte Antwort
Shubham Gupta
am 24 Sep. 2019
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 !
0 Kommentare
Weitere Antworten (1)
Siehe auch
Kategorien
Mehr zu Vector Fields finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!