Plot in 3D isolines from 2D image

7 visualizaciones (últimos 30 días)
Ibrahim
Ibrahim el 3 de Dic. de 2022
Respondida: DGM el 4 de Dic. de 2022
Hello,
I'd like to ask if someone could help me to undersand how can I plot isolines of a portion of map (terrain with differen elevation) in 3D plot in matlab? I have 2D coloured map with different isolines, each represents different elevation. I'd like to obtain 3D map

Respuestas (2)

Image Analyst
Image Analyst el 3 de Dic. de 2022
Is surfc what you want? Or one of the numerous contour functions?

DGM
DGM el 4 de Dic. de 2022
Or perhaps
[x y z] = peaks(50);
hs = surf(x,y,z); hold on
hs.EdgeAlpha = 0.5;
[~,hc] = contour3(x,y,z);
hc.LineWidth = 5;
Note that this is a scenario where two objects are dependent on the same colormap. Utilizing different colormaps for both the surf and contour requires extra work.

Categorías

Más información sobre Surface and Mesh Plots en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by