Append cell column to a matrix

조회 수: 3 (최근 30일)
Bubblesjinx
Bubblesjinx 2017년 10월 4일
답변: Rik 2017년 10월 4일
I have a matrix AUC(3296x4) double, I need to append a cell column
condition = {'FaHPF','FaHPuF','FaHuPF','FaHuPuF','FaEPF','FaEPuF','FaEuPF','FaEuPuF','HoHPF','HoHPuF','HoHuPF','HoHuPuF','HoEPF','HoEPuF','HoEuPF','HoEuPuF'};
to this matrix AUC upto 16 rows and then repeat this same column after 16 rows. How can I do that?

답변 (1개)

Rik
Rik 2017년 10월 4일
You can't. A possible workaround is converting the whole matrix to a cell matrix (for which you can use the num2cell function).

카테고리

Help CenterFile Exchange에서 Resizing and Reshaping Matrices에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by