Interpolated 2D sections out of 3D plot
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Ane Følgesvold Reines
am 27 Sep. 2019
Kommentiert: darova
am 27 Sep. 2019
I have a number of data for 3 variables - data points in 3D - which can be plotted using plot3(). I want to make 2D sections from this plot, keeping one of the 3 variables, lets call it z, constant at different values (set up an array of constant z values and make 2D sections in x-y plane for each value). I want to use interpolation to get the most accurate 2D section. Any help on how I can do this?
2 Kommentare
Akzeptierte Antwort
darova
am 27 Sep. 2019
Use griddata() (use griddata(x,y,z,xq,yq,'method','cubic') if interpolation is needed) to build a surface
Use contour() to create a crossection at specific height
5 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Contour Plots 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!