Can't get fprintf to display my equations answer
1 次查看(过去 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!