How can I separate the arrays when making a table?
1 次查看(过去 30 天)
显示 更早的评论
I need to make table from two arrays.
One array is matrix of n*1 and the other array is n*5. When I make table the table size is n*2 and I want to be n*6.
Any thouhgt?
I use this command:
table=table(ttestnames,ttest_result_p);
0 个评论
采纳的回答
Star Strider
2020-2-22
Try this:
n = 5;
A = rand(n,1);
B = rand(n,5);
T = array2table([A, B])
That should do what you want.
4 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Logical 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!