how to create a multi dimension matrix
1 次查看(过去 30 天)
显示 更早的评论
i have a variable having 7 characteristics associated with it.. i have to analyse 15 variables with all 7 parameters.. how to make a 15 x 7 matrix with the obtained charc. of each variable
0 个评论
采纳的回答
Azzi Abdelmalek
2014-7-19
编辑:Azzi Abdelmalek
2014-7-19
You can use a struct class
v=struct('name',{'tom','jerry','kim'},'age',{12 15 20},'height',{6 5 4})
To acces your data
v(1).name
v(1).age
v(3).name
your_vars={'var1' 'var2' 'var3'}'
name={'tom','jerry','kim'}'
age={12 15 20}'
height={6 5 4}'
data=table(name,age,height,'RowNames',your_var)
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Structures 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!