Normalise data set in 2d plot

2 Ansichten (letzte 30 Tage)
TIERNAN BURKE
TIERNAN BURKE am 20 Apr. 2021
Beantwortet: Divija Aleti am 23 Apr. 2021
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?

Antworten (1)

Divija Aleti
Divija Aleti am 23 Apr. 2021
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

Kategorien

Mehr zu Graphics finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by