Hello. How can I change format of the some value in table function?

2 views (last 30 days)
I want to display values with help of the table function under different format.
  4 Comments
Peter Perkins
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.
Zak Kankin
Zak Kankin on 18 Dec 2015
but another way for set separate formats didn't described in the help

Sign in to comment.

Accepted Answer

Image Analyst
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.
  1 Comment
Zak Kankin
Zak Kankin on 18 Dec 2015
Edited: Zak Kankin on 18 Dec 2015
Yes, you right. It was need to make columns in different formats (accuracy). But table function maybe can't adjusted for this. I decided use fprintf as you recomend. Thank you.

Sign in to comment.

More 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!