-1

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.

Simplicity
  • 47,404
  • 98
  • 256
  • 385

1 Answers1

2

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

Paweł Kordowski
  • 2,688
  • 1
  • 14
  • 21