필터 지우기
필터 지우기

Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

I do not know why there is no answer being produced for phi when I try to run the code? (provided the question do not know if that will help)

조회 수: 1 (최근 30일)
  댓글 수: 1
Stephen23
Stephen23 2018년 2월 20일
편집: Stephen23 2018년 2월 20일
"...there is no answer being produced for phi when I try to run the code"
There is. phi is calculated, and then that variable is never used anywhere: you do not display it nor return it as an output argument, so once the function gets to the end phi is simply discarded. But phi is calculated, just as you coded it to do.
Do you see the wavy orange and red underscores in the editor? You should pay attention to the messages that they have for you!

답변 (1개)

Amjad Green
Amjad Green 2018년 2월 21일
phi=(n1-n2)/R... you should remove the semi column to see phi in workspace

이 질문은 마감되었습니다.

태그

Community Treasure Hunt

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

Start Hunting!

Translated by