Euler's identity with angle in degrees
    조회 수: 12 (최근 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!



