how to flip mirror contour plot horizontally (to flip about 180 degrees)

20 ビュー (過去 30 日間)
Abba Alhaji Bala
Abba Alhaji Bala 2020 年 12 月 2 日
Hello everyone, please i have this code which i used the attached files to generated the mirror contour plot as in the figure. Please how can i flip the two contours horizontally? in other words both contours to flip to 180 degrees horizontal.
figure
[C,h] = contour(R,Z,psi,9,'linewidth',1.9)
hold on
[C,h] = contour(-R,Z,psi,9,'linewidth',1.9)

採用された回答

Ameer Hamza
Ameer Hamza 2020 年 12 月 2 日
Are you looking for something like this
psi = readmatrix('psi_all.txt');
Z = readmatrix('Z_all.txt');
R = readmatrix('R_all.txt');
figure
[C,h] = contour(R,Z,flipud(psi),9,'linewidth',1.9)
hold on
[C,h] = contour(-R,Z,flipud(psi),9,'linewidth',1.9)
  2 件のコメント
Abba Alhaji Bala
Abba Alhaji Bala 2020 年 12 月 2 日
that is exactly what i want, thanks
Ameer Hamza
Ameer Hamza 2020 年 12 月 2 日
I am glad to be of help!

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeContour Plots についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by