I need help with the code if a should put d in trig identites

2 Ansichten (letzte 30 Tage)
My mee
My mee am 9 Jun. 2021
Beantwortet: Walter Roberson am 9 Jun. 2021
A vector can be represented by its rectangular coordinates x and y or by its polar coordinates r and . The relationship between them is given by the equations
Assign values for the polar coordinates to variables and . Write the Matlab code that would use these values and assign the corresponding rectangular coordinates to variables x and y
Should i put d when I input the code? For example, x=r*cosd(theta)

Antworten (1)

Walter Roberson
Walter Roberson am 9 Jun. 2021
Use sind() and cosd() if the angle has been given to you in degrees.
Use sin() and cos() if the angle has been given to you in radians.
Note: if the angle has been given in radians, then pol2cart() can do the work for you.

Kategorien

Mehr zu Polar Plots finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by