Im creating histograms using two scripts, one is matlabs own hist
function and another is a script I downloaded. The script I downloaded takes the absolute min and max values and generates a histogram between that. But the issue is that unlike MATLAB, this histogram is not displayed. I am presented with a vector.
Now to compare the two visually I am using plot
, but for some reason the scale changes. For example histogram using MATLAB's hist
is shown below:
And if I show this histogram in plot
, the x-axis scale changes:
How can I keep the scale same?
I need this because the downloaded script does not generate the histogram so to display it I use plot
. Again the plot is between 0 and 100 and I feel this may not be an accurate comparison