Code an equation in MATLAB

조회 수: 4 (최근 30일)
HN
HN 2022년 5월 7일
댓글: HN 2022년 5월 18일
In matlab, I write the following code to the above equation as follows
ri = sqrt(psi_coordinates.^2+theta_coordinates.^2);
A = sum((ri*delta_epsilon)/2);
V = delta_z*sum(A);
But the result I obtained is not correct. Can anyone comment if I made some mistake please ?
Thank you .
  댓글 수: 27
HN
HN 2022년 5월 18일
The unit is Meridian is rad. Yes, that is right. these lines are redudant and should be removed.
HN
HN 2022년 5월 18일
@Jeffrey Clark, Right. It woudl be easy to help if the entire working code is uploaded. But I am afraid I cannot do that..

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

답변 (0개)

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by