Can't get fprintf to display my equations answer
2 views (last 30 days)
Show older comments
Tony DiMichele
on 13 Feb 2019
Commented: Tony DiMichele
on 13 Feb 2019
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 Comments
Accepted Answer
madhan ravi
on 13 Feb 2019
%.2f
^-—-—missed it
2 Comments
madhan ravi
on 13 Feb 2019
https://www.mathworks.com/help/matlab/ref/fprintf.html#btf8xsy-1_sep_shared-formatSpec - see the examples provided in the link to practice fprintf()
More Answers (0)
See Also
Categories
Find more on Introduction to Installation and Licensing in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!