Hello. How can I change format of the some value in table function?
2 views (last 30 days)
Show older comments
I want to display values with help of the table function under different format.
4 Comments
Peter Perkins
on 18 Dec 2015
This:
format short e
is your problem. You've specifically said to NOT display anything as integers. Try using format short g instead.
Accepted Answer
Image Analyst
on 17 Dec 2015
Clear as mud. Different than what? Like one of the values in one of the table columns (say the 10th row) has 7 decimal places while all the other values in all the other rows have 4 decimal places or something like that??? You'll need to give an example. You might just have to use fprintf() and get exactly whatever peculiar formatting you want. You get the most flexibility with fprintf() because you have to specify absolutely everything.
More 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!