Can't get fprintf to display my equations answer

2 ビュー (過去 30 日間)
Tony DiMichele
Tony DiMichele 2019 年 2 月 13 日
コメント済み: Tony DiMichele 2019 年 2 月 13 日
I'm trying to get my program to display the answer like ( Time of Flight : x secs) using the fprintf function, but when I run the program my fprintf displays nothing.
Here's an attachment below.
Any help would be greatly appreciated!
-Tony

採用された回答

madhan ravi
madhan ravi 2019 年 2 月 13 日
%.2f
^--missed it
  2 件のコメント
madhan ravi
madhan ravi 2019 年 2 月 13 日
https://www.mathworks.com/help/matlab/ref/fprintf.html#btf8xsy-1_sep_shared-formatSpec - see the examples provided in the link to practice fprintf()
Tony DiMichele
Tony DiMichele 2019 年 2 月 13 日
Thanks you lol, I've been trying for HOURS to fix that.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeIntroduction to Installation and Licensing についてさらに検索

製品


リリース

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by