How can I separate the arrays when making a table?

1 回表示 (過去 30 日間)
Zeynab Mousavikhamene
Zeynab Mousavikhamene 2020 年 2 月 22 日
コメント済み: Star Strider 2020 年 2 月 22 日
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);

採用された回答

Star Strider
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 件のコメント
Zeynab Mousavikhamene
Zeynab Mousavikhamene 2020 年 2 月 22 日
Star Strider
Star Strider 2020 年 2 月 22 日
As always, my pleasure!
I looked at your other Question and left a Comment.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

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