MATLAB: How to reverse the probability on a normplot graph so the fitted line slope is negative

normplot

To Whom It May Concern; I need to change the way normplot graphs the data. Instead of indicating the probability of a given point is .9 for the rest of the data being higher, I need it to be for the rest of the data being lower. This would also mean that the fitted line would have a negative slope. Please help. Thank you. Sincerely, CHobbs

Best Answer

I’m not certain what result you want. You can easily reverse the axis directions:
x = normrnd(10,1,25,1);
figure;
normplot(x)
set(gca, 'XDir','reverse')
Depending on what you want, you can do the same with the y-axis:
set(gca, 'YDir','reverse')
or using both commands, reverse both axes directions.