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

 채택된 답변

KSSV
KSSV 2020년 8월 19일
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
KSSV
KSSV 2020년 8월 19일
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 2020년 8월 19일
Use plot..in here you can specify your marker, line specifications, color and you can bel using text.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Contour Plots에 대해 자세히 알아보기

제품

태그

질문:

2020년 8월 19일

댓글:

2020년 8월 19일

Community Treasure Hunt

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

Start Hunting!

Translated by