How can I separate the arrays when making a table?

조회 수: 2 (최근 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
Star Strider
Star Strider 2020년 2월 22일
As always, my pleasure!
I looked at your other Question and left a Comment.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Tables에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by