Dear mathworks community,
I would like to plot my data as a horizontal histogram with fitted gaussian. However, I have encountered a problem. I plotted my data using:
Then, I wanted to change the orientation of the plot. I was able to do it for the histogram using:
However, there seem not to be a 'Horizontal' option for the fitted gaussian. Indeed, when I run get(h(2)), I didn't see an 'Orientation' or a 'Horizontal' property. Of course, a histfit plot with horizontal histogram and vertical fitted gaussian is meaningless.
Is there a way to resolve this issue? I will be very grateful for your help. Kasia