Question: I am in need of help with MATLAB code for the following problems. 30, The new coordinates (X-%) of a point in the ry plane

I am in need of help with MATLAB code for the following problems.
 I am in need of help with MATLAB code for the
following problems. 30, The new coordinates (X-%) of a point in the

30, The new coordinates (X-%) of a point in the ry plane that is rotated about the z axis at an angle (positive is clockwise) are given by x,-,cose-r, sine where CG. ra) are the coordinates of the point before the rotation. Write user-defined function that calculates CX-,) given (X, ,) and e. For func tion name and arguments, use xr,yr-rotation (x, y.g), where the input arguments are the initial coordinates and the rotation angle in degrees and the output arguments are the new coordinates (a) Use rotation to determine the new coordinates of a point originally at (6.5,2.1) that is rotated about the s-axis by 25 (b) Consider the function y+1.5 for Ssxs9. Write a program in a script file that makes a plot of the function. Then use rotation to rotate all the points that make up the first plot and make a plot of the rotated func- tion. Make both plots in the same figure and set the range of both axes at O o 10

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!