Plot contour on desired level

hi... i am trying to plot the contours on "surf" graph by following code %data x=[0.01 0.02 0.04 0.06 0.09 0.17 0.29 0.51 0.67 0.84 1.07 1.44 1.72 2.04 2.50 3.06 3.69 4.45 5.36 6.64 8.60 11.80 15.08 18.83 23.45 26.49 28.99 31.85 36.63 39.46 42.12 46.56 51.45 56.57 60.06 64.38 69.71 75.62 81.45 86.72 91.27 94.54 96.98 98.32 99.01 99.48 99.74 99.99]; y=[31.85 31.84 31.81 31.79 31.76 31.68 31.56 31.35 31.18 31.01 30.78 30.42 30.14 29.81 29.36 28.79 28.16 27.40 26.50 25.22 23.25 20.06 16.78 13.03 8.41 5.37 2.87 0.01 0.01 0.01 0.01 0.01 0.01 0.01 0.01 0.01 0.01 0.01 0.01 0.01 0.01 0.01 0.01 0.01 0.01 0.01 0.01 0.01]; sd==[-3.80 -3.70 -3.60 -3.50 -3.40 -3.30 -3.20 -3.10 -3.00 -2.90 -2.80 -2.70 -2.60 -2.50 -2.40 -2.30 -2.20 -2.10 -2.00 -1.90 -1.80 -1.70 -1.60 -1.50 -1.40 -1.30 -1.20 -1.10 -1.00 -0.90 -0.80 -0.70 -0.60 -0.50 -0.40 -0.30 -0.20 -0.10 0.00 0.10 0.20 0.30 0.40 0.50 0.60 0.70 0.80 0.90]; axes('FontSize',16,'LineWidth',2); [x_new,y_new,V]=Myplot3D(x,y,sd); h=surf(x_new,y_new,V,'LineStyle','none'); hold on contour(x_new,y_new,V,'ShowText','off','LineWidth',2,'LineStyle','-','Fill','on','LevelStep',0.5);
By the help of this code i was able to plot contour on "0" i want to shift contours to "-4" please help me out...thanks

1 commentaire

Muhammad Usman Saleem
Muhammad Usman Saleem le 18 Juin 2016
By the help of this code i was able to plot contour on "0" i want to shift contours to "-4"
Is this means you want to set contour interval or some thing other. Please explain?

Connectez-vous pour commenter.

Réponses (0)

Catégories

En savoir plus sur Contour 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!

Translated by