Info

This question is closed. Reopen it to edit or answer.

Put a new variable at the top of a table

1 view (last 30 days)
alpedhuez
alpedhuez on 11 Jun 2018
Closed: MATLAB Answer Bot on 20 Aug 2021
I create a new variable a at table T. When I try to view T using viewer, a will be at the end (the most right) of the screen. Is it possible to set the variable a at the top of a table (the most left).

Answers (2)

Image Analyst
Image Analyst on 11 Jun 2018
Did you try using brackets, like with any other variable, like
T = [leftTable, rightTable];
Full demo:
Age = [38;43;38;40;49];
Height = [71;69;64;67;64];
Weight = [176;163;131;133;119];
BloodPressure = [124 93; 109 77; 125 83; 117 75; 122 80];
T1 = table(Age)
T2 = table(Height,Weight,BloodPressure)
T = [T1, T2]

Walter Roberson
Walter Roberson on 11 Jun 2018

Products

Community Treasure Hunt

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

Start Hunting!