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

조회 수: 218 (최근 30일)
Craig Stevens
Craig Stevens 2020년 7월 7일
답변: Image Analyst 2020년 7월 7일
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
Image Analyst
Image Analyst 2020년 7월 7일
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?

댓글을 달려면 로그인하십시오.

답변 (1개)

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

카테고리

Help CenterFile Exchange에서 Tables에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by