a{20,20}(3,1) ??

Hi,
Can I create a zero matrix of 20x20 of which element is a column vector of length 3? I was looking for something like a{20,20}(3,1) but it does not seems to be working! :( too bad!
Thanks in advance

Respuestas (1)

TAB
TAB el 18 de Feb. de 2012

0 votos

Elem = zeros(3,1);
ValueCell = cell(20,20);
ValCell=cellfun(@(x)(Elem),ValCell,'UniformOutput', false)
:-)

Categorías

Más información sobre Matrices and Arrays en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 18 de Feb. de 2012

Community Treasure Hunt

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

Start Hunting!

Translated by