参见help文档,table有两种使用方法:
1.一步到位赋值
T=table(data1,data2,'VariableNames',{'Time','Age',...});
当data,data2...的数据类型相同时,方便采用这种方式。
2.分步式赋值,类似于结构体
T=table;
T.Time=time;
T.Age=age;
当各部分数据类型不同时,可分步赋值。
参见help文档,table有两种使用方法:
1.一步到位赋值
T=table(data1,data2,'VariableNames',{'Time','Age',...});
当data,data2...的数据类型相同时,方便采用这种方式。
2.分步式赋值,类似于结构体
T=table;
T.Time=time;
T.Age=age;
当各部分数据类型不同时,可分步赋值。
本文标题:Matlab中table函数的使用
本文链接:https://www.haomeiwen.com/subject/rbotlctx.html
网友评论