Euler's identity with angle in degrees
16 次查看(过去 30 天)
显示 更早的评论
采纳的回答
更多回答(2 个)
Joe Vinciguerra
2023-6-30
编辑:Joe Vinciguerra
2023-6-30
[EDIT: oops. converted in the wrong direction.]
deg2rad will convert degrees to radians (https://www.mathworks.com/help/matlab/ref/deg2rad.html).
So you'll do something like this:
j = sqrt(-1);
a = 180;
exp(deg2rad(a)*j)
0 个评论
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!