Using Display function in an easy way
2 views (last 30 days)
Show older comments
I want to print name and value of a variable like "S" as below during the run:
S = 0.15
Can you help me with this please
0 Comments
Accepted Answer
Ameer Hamza
on 24 Sep 2020
Edited: Ameer Hamza
on 24 Sep 2020
S = 0.15;
fprintf('S = %.2f\n', S)
0 Comments
More Answers (1)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!