Filter löschen
Filter löschen

How to make data table aligned straight column by column?

3 Ansichten (letzte 30 Tage)
Ben Le
Ben Le am 25 Jun. 2016
Kommentiert: Walter Roberson am 26 Jun. 2016
Hello,
I am unable to make my data table straight in vertical column by column as shown in the example below:
Age Height Weight BloodPressure
___ ______ ______ _____________
Smith 38 71 176 124 93
Johnson 43 69 163 109 77
Williams 38 64 131 125 83
Jones 40 67 133 117 75
Brown 49 64 119 122 80
My output table look like below:
LastName Gender Age Height Weight Smoker
__________ ______ ___ ______ ______ ______
'Smith' 'M' 38 71 176 1
'Johnson' 'M' 43 69 163 0
'Williams' 'F' 38 64 131 0
'Jones' 'f' 40 67 133 0
'Brown' 'F' 49 64 119 0
Anyone know? Please help. Thank you in advance!
  1 Kommentar
Walter Roberson
Walter Roberson am 26 Jun. 2016
How are you doing the output? When I try with a table object, everything is aligned for me.

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Kategorien

Mehr zu Tables finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by