フィルターのクリア

Create a Table of Data

4 ビュー (過去 30 日間)
John hope
John hope 2018 年 10 月 23 日
回答済み: Peter Perkins 2018 年 10 月 31 日
Hi all
I am trying to create a table of data in matlab that I can print.
I have seen some example code (below) which is really good however it does not fit my needs.
The table of data I want to create looks like:-
Any ideas on how I can go about achieving something similar?
Thank you.
LastName = {'Smith';'Johnson';'Williams';'Jones';'Brown'};
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];
T = table(Age,Height,Weight,BloodPressure,...
'RowNames',LastName);
if true
% code
end

回答 (2 件)

KSSV
KSSV 2018 年 10 月 24 日
load = (0:10:100)' ;
deflection = rand(size(load)) ;
T =table(load,deflection)

Peter Perkins
Peter Perkins 2018 年 10 月 31 日
I'm guessing you want to create a table with three variables named wet_something, wet_somethingelse, ..., each of which is itself a table containing variables named load and deflection.
A variable in a table can be pretty much any MATLAB array, including another table.

カテゴリ

Help Center および File ExchangeTables についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by