I plot a contour with Z value with specific value

I want if plot a countour with specific value of Z , in this case is 1 but, it have the two cases of variable of x,y equal to 1 and -1479, it has been ploted both, But i just plot value at Z=1, Plsease help me. thanks.
b2=contour(fbb./fs_i,Coss_bb./1e-12,fQ_b,[1,1],'--','LineWidth',3,'color','g');

 Réponse acceptée

KSSV
KSSV le 19 Août 2020
c = contour()
c also carries the points (x,y) of each/ different level which you have specififed. You can pick the points (x,y) you want and plot them using plot. You can dislay the level using text command.

6 commentaires

Do you have any way to use the contour(,x,y,z,) to solve this prolem. Because, it just happend when the range of x to large. Thank you!,
b2=contour(fbb./fs_i,Coss_bb./1e-12,fQ_b,[1,1]);
Check b2 it should have the points/ curve coordinates (x,y) of the range. From this b2 you pick the required curve based on the level and use plot.
Yes, You are right, b2 is matrix 2 by N , I need the matrix 1 by N. I want to remove the second row of b2 in courtour plot. Thanks
KSSV
KSSV le 19 Août 2020
You need 2XN matrix.....out of N, there will be (x,y) coordinates for both the levels..you need to pick your required level.
Thanks is accepting/ voting the answer.. ;)
Sorry, but i did not catch your ideal. Because of i want to plot as the same coordinates with original courtour figure. How can i do that, Thank you so much!
KSSV
KSSV le 19 Août 2020
Use plot..in here you can specify your marker, line specifications, color and you can bel using text.

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Contour Plots dans Centre d'aide et File Exchange

Produits

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by