I want to rotate the "h" scatter plot (using rotate function) to transpose the graphic from XY axes to YZ axes (with 2 rotations.. see code below). WHY can't i apply this rotation to scatter function? If there really is no solution to this problem, I would like to find, al least, why?
NOTE: scatter3(0,x,y) is not a sollution for my needs.
x=[-1 -1 0 1 1 -1];
y=[0 2 4 2 0 0];
hold on
axis([-5 5 -5 5 -5 5])
view(45,5)
h=scatter(x,y) %% see plot(x,y) instead of this line (that result I want to obtain)
rotate(h,[0 1 0],270)
rotate(h,[1 0 0],90)
axis([-0 5 -5 5 -5 5])
hold off
Thank you for your help!
NOTE: scatter3(0,x,y) is not a sollution for my needs.
x=[-1 -1 0 1 1 -1];
y=[0 2 4 2 0 0];
hold on
axis([-5 5 -5 5 -5 5])
view(45,5)
h=scatter(x,y) %% see plot(x,y) instead of this line (that result I want to obtain)
rotate(h,[0 1 0],270)
rotate(h,[1 0 0],90)
axis([-0 5 -5 5 -5 5])
hold off
Thank you for your help!