presenting result in a table

1 visualización (últimos 30 días)
Esegboria Osarhemen
Esegboria Osarhemen el 3 de Mzo. de 2019
Comentada: Rena Berman el 5 de Mzo. de 2019
How can I create a matrix/table like the one in the attached photo using the given data

Respuestas (1)

Sheng Chen
Sheng Chen el 3 de Mzo. de 2019
You can try table():
LastName = {'Sanchez';'Johnson';'Li';'Diaz';'Brown'};
Age = [38;43;38;40;49];
Smoker = logical([1;0;1;0;1]);
Height = [71;69;64;67;64];
Weight = [176;163;131;133;119];
BloodPressure = [124 93; 109 77; 125 83; 117 75; 122 80];
T = table(LastName,Age,Smoker,Height,Weight,BloodPressure);
Also, please refer to Table array with named variables that can contain different types and see if this is what you want.

Categorías

Más información sobre Tables en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by