Storing double output into a single cell array

Hi, is there a way for me to store the output in a cell format, in a single matrix? I want to store each 'selectedlocal' as part of the cell array A. Right now, I have an error "conversion to double from cell is not possible".
Thank you!
A = zeros (9,8);
for k = 1:8
sesslocal = cell2mat(locationsacc(k));
for n = 1:9
selectedlocal = find(sesslocal ==n); %%always change sesslocal
A(n,k) = {selectedlocal};
end
end

 Respuesta aceptada

madhan ravi
madhan ravi el 22 de Feb. de 2020
zeros() to cell() and
A{n,k} = selectedlocal

1 comentario

Cside
Cside el 22 de Feb. de 2020
thank you madhan, almost completing my thesis analysis!

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Data Type Conversion en Centro de ayuda y File Exchange.

Preguntada:

el 22 de Feb. de 2020

Comentada:

el 22 de Feb. de 2020

Community Treasure Hunt

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

Start Hunting!

Translated by