MATLAB: How to rotate plot using code

image acquisitionimage analysisimage processingplotplottingsubplot

I have a plot showing pixel intensity values. I want to rotate the plot clockwise 90 degrees…can anyone help

Best Answer

let y is pixel intensity
x=1:1:length(y)
plot(y,x) may work instead of plot(y)
this command is useful to flip axis
set(gca,'YDir','reverse');
u can use this command too
camroll(-90)
Related Question