how can i assign a column in a cell array -a vector
Mostrar comentarios más antiguos
I have a 1*n cell array C an a matrix M n*8. i have to assign each column of C [1.....n] a vector of 8 values that are the columns of M.
z=size(M,1);
C=cell(1,z);
for i=1:z
v=M(i,:);
c(1,i)=v;
end
error = "Conversion to cell from double is not possible."
How to remove this error??
can i use mat2cell.I am not able to understand how to use it.
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Data Types en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!