I'm trying to make a table out of one vector (24x1) and a maxtrix (24x12), I want to have the vector in column one followed by the columns of the matrix.
Have tried the following expression but that gives me a table 24x2 and all the columns from the matrix land in column 2.
T=table(vector, matrix);
What to do?

 채택된 답변

KSSV
KSSV 2018년 12월 11일

0 개 추천

Read about array2table
v = rand(10,1) ;
A = rand(10,10) ;
T=array2table([v, A]);

추가 답변 (1개)

카테고리

도움말 센터File Exchange에서 Logical에 대해 자세히 알아보기

태그

질문:

2018년 12월 11일

댓글:

2018년 12월 11일

Community Treasure Hunt

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

Start Hunting!

Translated by