Double to cell from workspace?
260 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
sandy
el 14 de Mzo. de 2014
Comentada: SRI
el 14 de Mzo. de 2014
i have a variable which is (2100*40 double) .i need to convert to each to a cell.the outpur as (2100*40 cell)
Respuesta aceptada
Más respuestas (2)
Mischa Kim
el 14 de Mzo. de 2014
Editada: Mischa Kim
el 14 de Mzo. de 2014
A = [1 2 3; 4 5 6]; % numeric array
B = {A}; % cell array
C = mat2cell(A); % cell array
0 comentarios
David Sanchez
el 14 de Mzo. de 2014
data = rand(3,5); % your data here
create cell with data
cell_data = num2cell(data);
you can also take a look at
mat2cell
0 comentarios
Ver también
Categorías
Más información sobre Cell Arrays 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!