Contours at a specific height from the surface || surfc
Afficher commentaires plus anciens
Hi,
Is it possible to add the contours at a specific height from the surface plot using surc? I have seen that the contours are closely attached with the surface plot. Here, I have attached the Z data. The range of X axis and Y axis is from 0 to 11. I put the Z data accordingly. Here, You can see that the contours are very close with the surface and very difficult to see the individual countour. When I rorate the 3D plots, some of the contours are visible, however, they are still very close. Is there any way to separe the countours and the surface plots?
Regards,
Jaladhar
3 commentaires
KSSV
le 26 Août 2019
How about this?
load Surface_Data.mat
[c,h] = contour(B) ;
z = interp2(B,c(1,:),c(2,:)) ;
surf(B)
hold on
scatter3(c(1,:),c(2,:),0*z-50,10,z)
Jaladhar Mahato
le 26 Août 2019
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Surface and Mesh Plots dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!