Can't get fprintf to display my equations answer
2 ビュー (過去 30 日間)
古いコメントを表示
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
0 件のコメント
採用された回答
madhan ravi
2019 年 2 月 13 日
%.2f
^-—-—missed it
2 件のコメント
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()
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Introduction to Installation and Licensing についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!