change in histogram distributions

1 view (last 30 days)
Hi, is it possible to flip a histogram around the peak value? I do not want to flip the axis. Just for performing some checks, I want to invert my distribution from negative skewness to positive skewness, keeping the mean value at its original value. any help is appreciated.

Accepted Answer

Théophane Dimier
Théophane Dimier on 9 Dec 2020
Edited: Théophane Dimier on 9 Dec 2020
It should be doing the following (considering that a is your input)
hold on
This should plot the histogram and the mirrored histogram.
If you want to force it to rotate around the peak (conservation of the mode of the distribution):
hold on
I hope it answers your question!
Sumera Yamin
Sumera Yamin on 11 Dec 2020
ok, thanks, i understood it now.

Sign in to comment.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!

Translated by