Question: (b) Write a script, lab0203.m, that plots r = cos(20) from 0 to 27 using both the 'plot' command and polarplot' command. Have both plots

 (b) Write a script, lab0203.m, that plots r = cos(20) from

(b) Write a script, lab0203.m, that plots r = cos(20) from 0 to 27 using both the 'plot' command and polarplot' command. Have both plots appear in the same figure by using subplot. (Recall x = r cos 0 and y=r sind when plotting in cartesian coordinates.) If the axes are compressed, use axis equal. Once you have run your script and have it working, modify your code to plot r = cos no where n is any integer entered by the user and the range of 0 is also defined by the user (use the command input to prompt the user). Label your axes and include a title. Be sure to comment your code! (b) Write a script, lab0203.m, that plots r = cos(20) from 0 to 27 using both the 'plot' command and polarplot' command. Have both plots appear in the same figure by using subplot. (Recall x = r cos 0 and y=r sind when plotting in cartesian coordinates.) If the axes are compressed, use axis equal. Once you have run your script and have it working, modify your code to plot r = cos no where n is any integer entered by the user and the range of 0 is also defined by the user (use the command input to prompt the user). Label your axes and include a title. Be sure to comment your code

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!