필터 지우기
필터 지우기

Need help converting this answer to code? Please help!!

조회 수: 1 (최근 30일)
Ruben
Ruben 2022년 10월 26일
답변: Walter Roberson 2022년 10월 31일
  댓글 수: 3
Ruben
Ruben 2022년 10월 26일
Yes, I have but I keep getting errors.
Jan
Jan 2022년 10월 26일
@Ruben: Please post the code and a copy of the error message.
I have no idea, what e.g. "I_l = 65 60 angle -83.13^A +5" should mean.

댓글을 달려면 로그인하십시오.

답변 (2개)

Shivani Dixit
Shivani Dixit 2022년 10월 31일
Hi Ruben,
As per my understanding you want to write code for the above solution but while doing so you are facing some errors.
From the answer provided above it seems that the code uses operations like complex algebra, inverse trigonometry, etc. You can leverage our MATLAB Documentation and get help on syntax, examples on how to convert these operations into efficient code.
Consider the following example :
>> acosd(0.6)
This example shows the use of MATLAB function acosd which finds the cosine inverse of 0.6 as per one step of your answer. You can also try to implement functions in MATLAB to avoid repetition of code.
In case you are facing any error while doing so, or are stuck at any step, let me know the exact error/query, I will be glad to help.

Walter Roberson
Walter Roberson 2022년 10월 31일
The conversation for magnitude R and angle D degrees is
z = R * (cosd(D) + 1i*sind(D))

카테고리

Help CenterFile Exchange에서 MATLAB에 대해 자세히 알아보기

제품


릴리스

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by