How to display table output in parentheses?
3 views (last 30 days)
Show older comments
I have a table displaying my output:
table = [s0, (e0)
s1, (e1)
s2, (e2)
s3, (e3)]
But in the complier it displays:
0.87758 0.00000
1.00000 13.94939
0.87500 0.29428
0.87760 0.00246
How do I get it so that the right column remains in paraenthesis.
4 Comments
Walter Roberson
on 10 Sep 2019
fprintf('table = [%12.5f(%12.5f)', s0, e0);
fprintf('\n %12.5f(%12.5f)', [s1, e1; s2, e2; s3, e3].');
fprintf(']\n');
It would be easier if the 'table = [' were not part of the output on the same line.
Answers (0)
See Also
Categories
Find more on Tables 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!