MATLAB: Plotting 3D- matrix values against other 3D-matrix values

3d matrices3d plotsplotting

Hi! I have two 3D matrices with the same size, x and y. I want to plot the values of y against the values of x. How can I do it?

Best Answer

you don't care about the fact that the matrices are 3D or not. you might as well convert the matrices to a vector, as long as you're plotting each point in x against each point in y. hence: plot(x(:),y(:)); %should do the trick
------------------------- prayers for syria