Normalise data set in 2d plot

조회 수: 2 (최근 30일)
TIERNAN BURKE
TIERNAN BURKE 2021년 4월 20일
답변: Divija Aleti 2021년 4월 23일
I need to normalize the values in the y axis to be between -1 and 1. Im trying to non dimensionalise that data which is amplitude (m).
see in graph below how values range roughly from -0.5 to 0.5 how can i normalise this to range from -1 to 1 without skewing my data and keeping its accuracy?

답변 (1개)

Divija Aleti
Divija Aleti 2021년 4월 23일
Hi Tiernan,
After you finish plotting, you can specify the limits of y-axis by adding the following line of code:
ylim([-1 1])
Hope this helps!
Regards,
Divija

카테고리

Help CenterFile Exchange에서 Graphics에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by