"...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 endphi is simply discarded. Butphiis 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!
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
1 件のコメント
このコメントへの直接リンク
https://jp.mathworks.com/matlabcentral/answers/383838-i-do-not-know-why-there-is-no-answer-being-produced-for-phi-when-i-try-to-run-the-code-provided-th#comment_537611
このコメントへの直接リンク
https://jp.mathworks.com/matlabcentral/answers/383838-i-do-not-know-why-there-is-no-answer-being-produced-for-phi-when-i-try-to-run-the-code-provided-th#comment_537611
サインインしてコメントする。