Append cell column to a matrix

2 visualizaciones (últimos 30 días)
Bubblesjinx
Bubblesjinx el 4 de Oct. de 2017
Respondida: Rik el 4 de Oct. de 2017
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?

Respuestas (1)

Rik
Rik el 4 de Oct. de 2017
You can't. A possible workaround is converting the whole matrix to a cell matrix (for which you can use the num2cell function).

Categorías

Más información sobre NaNs en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by