Info
이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.
What is wrong with this code?
조회 수: 1 (최근 30일)
이전 댓글 표시
I am new to Matlab, which is probably very apparent from the above picture. I am trying to display that the left side of the equation on line 4 is equal to the function on the right after the n and x have been defined by the user. Any help would be much appreciated. Thanks!
댓글 수: 0
답변 (2개)
madhan ravi
2019년 2월 18일
편집: madhan ravi
2019년 2월 18일
Remove the single quotes from the last line, upload the code instead of a picture.
a/rw^2 == (cos(x)+(n^2*cos(2*x)+sin(x)^4))/((n^2-sin(x)^2)^(3/2))
% ^-^---------^-^------^-^^^------------^-^-- see the changes
Note: You should define rw as a number like x and n.
댓글 수: 0
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!