Question: Write a user-defined MATLAB function for the following math function: r() = 4cos(4sin) The input to the function is (in radians) and the output
r(θ) = 4cos(4sinθ)
The input to the function is θ (in radians) and the output is r. Write the function such that e can be a vector.
(a) Use the function to calculate r(π/6) and r(5π/6).
(b) Use the function to plot (polar plot) r(θ) for 0 < θ < 2π.
Step by Step Solution
3.28 Rating (166 Votes )
There are 3 Steps involved in it
Script file clear clc dispPart a thpi6 5pi6 rpolarmathth dispThe test values ... View full answer
Get step-by-step solutions from verified subject matter experts
Document Format (1 attachment)
652-B-F-F-M (739).docx
120 KBs Word File
