Create a table with headers and fill in the table with calculations

253 Ansichten (letzte 30 Tage)
Craig Stevens
Craig Stevens am 7 Jul. 2020
Beantwortet: Image Analyst am 7 Jul. 2020
I want to create a table with headers/variables "std, mean, max". i currently have conducted calculations on the raw data giving me a [1x20] double for each of these headers/columns. I want to fill in the table with these doubles/caclulations. Thank you.
  2 Kommentare
Image Analyst
Image Analyst am 7 Jul. 2020
Do you mean a table variable, like you'd create with
t = table(theStd(:), theMeans(:), theMaxes(:), 'VariableNames', {'std', 'mean', 'max'});
or do you mean like a spreadsheet on a GUI?

Melden Sie sich an, um zu kommentieren.

Antworten (1)

Image Analyst
Image Analyst am 7 Jul. 2020
Try this:
t = table(theStd(:), theMeans(:), theMaxes(:), 'VariableNames', {'std', 'mean', 'max'});

Kategorien

Mehr zu Tables finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by