문제

I have the following histogram which I have obtained using hist in MATLAB.

enter image description here

The issue here is that where the range is 0-250 on the y-axis, I want that to be on the x-axis, and vice versa.

How can this be done in MATLAB?

Thanks.

도움이 되었습니까?

해결책

[n, xout] = hist(rand(1,100)); barh(xout,n)

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top