Write a MATLAB function called rad2deg that will take an angle in radians as the input argument and return the angle converted to degrees.
1 次查看(过去 30 天)
显示 更早的评论
回答(2 个)
Steven Lord
2017-9-28
If this is not a homework assignment, I recommend using the function that has been included in MATLAB since release R2015b.
If this is a homework assignment, show what you've tried and ask a specific question about where you're having difficulty and you may receive some suggestions.
0 个评论
KSSV
2017-9-28
Don't post silly question...you can use the community for tough and complex situations. What is there to write a function?
You need to multiply radians with pi/180 to convert. There is also inbuilt function for that rad2deg
0 个评论
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!