How to display table output in parentheses?

2 views (last 30 days)
Corrupted
Corrupted on 10 Sep 2019
Commented: Corrupted on 10 Sep 2019
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
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.
Corrupted
Corrupted on 10 Sep 2019
ok this makes sense after some formating I got this to how I wanted it. Thank you.

Sign in to comment.

Answers (0)

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!