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');

 采纳的回答

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 个评论

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
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!
Use plot..in here you can specify your marker, line specifications, color and you can bel using text.

请先登录,再进行评论。

更多回答(0 个)

类别

帮助中心File Exchange 中查找有关 Contour Plots 的更多信息

产品

标签

Community Treasure Hunt

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

Start Hunting!

Translated by