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 日

0 投票

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 件のコメント

Tin Truong Chanh
Tin Truong Chanh 2020 年 8 月 19 日
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!,
KSSV
KSSV 2020 年 8 月 19 日
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.
Tin Truong Chanh
Tin Truong Chanh 2020 年 8 月 19 日
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.. ;)
Tin Truong Chanh
Tin Truong Chanh 2020 年 8 月 19 日
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 ExchangeContour 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