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 CenterFile Exchange에서 Annotations에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by