Question: in matlab. 3. Given Cartesian coordinates of a point (x, y), the corresponding polar coordinates (r, O) can be found via: However the above formula
in matlab.
3. Given Cartesian coordinates of a point (x, y), the corresponding polar coordinates (r, O) can be found via: However the above formula is incorrect for negative values of x, in which case the angle must have a factor of iT added to it i.e. 0 =tan (y/x)+ ). a) Using comments to type a pseudocode that prompts for Cartesian input and will display the polar output in degrees. The code should account for the conditional value of x using an "if-else" statement. b) Write script for the above pseudocode
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
