is there a way to plot a line that is the reverse of the y axis?

1 回表示 (過去 30 日間)
hasan alhussaini
hasan alhussaini 2017 年 9 月 7 日
回答済み: KSSV 2017 年 9 月 7 日
Hi i'm looking for a synatix or function that rotates a plot, e.g if i have a peak that is a minimum, is there a way to flip it upside down and make it a maximum? (bareing in mind the peaks are a list on numbers in a array).
also would you mind explaining how it would be written? e.g plot(line1,'b-'); %plots a blue line
Thanks

採用された回答

KSSV
KSSV 2017 年 9 月 7 日
If your data (x,y) ..use plot(x,-y)

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeGraphics Performance についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by