Command to create rectangle:
rectangle('Position',[xPos,yPos,W,H]);
xPos and yPos are the x and y positions of the bottom left corner of the rectangle in a 2-D Cartesian system.
I want to rotate the entire rectangle around its bottom left corner by some angle 'theta_end'. The bottom side of the rectangle should form the angle 'theta_end' with the x-axis.
r = rectangle('Position',[x_IN_end,y_IN_end,W1,l_F1]);rRot = rotate(r,theta_end,[0,0,1]);
…but it came back with this message:
Error using rotateToo many output arguments.
Best Answer