I need help with the code if a should put d in trig identites
1 次查看(过去 30 天)
显示 更早的评论
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
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/646865/image.png)
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)
0 个评论
回答(1 个)
Walter Roberson
2021-6-9
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.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Polar Plots 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!