MATLAB: Change position of axes in graphical output

graph

how to rotate x-axis to y-axis and y-axis to x-axis

Best Answer

instead of using plot(x,y) use plot(y,x), or (scatter).
Related Question