Can't get fprintf to display my equations answer

2 views (last 30 days)
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

Accepted Answer

madhan ravi
madhan ravi on 13 Feb 2019
%.2f
^--missed it

More Answers (0)

Categories

Find more on Introduction to Installation and Licensing in Help Center and File Exchange

Products


Release

R2018b

Community Treasure Hunt

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

Start Hunting!