Borrar filtros
Borrar filtros

I need to create a cell array initializing each element in it to 3*1 null matrix.

1 visualización (últimos 30 días)
I need to create a cell array initializing each element in it to 3*1 null matrix. How to proceed?
F=cell(a,2*n); is my cell and a,n are integers.

Respuesta aceptada

madhan ravi
madhan ravi el 13 de Jul. de 2019
Simpler without loop:
F(:) = {zeros(3,1)}

Más respuestas (1)

Image Analyst
Image Analyst el 13 de Jul. de 2019
Editada: Image Analyst el 13 de Jul. de 2019
I don't know about null. How about nan?
for k = 1 : numel(F)
F(k) = {nan(3, 1)};
end

Categorías

Más información sobre Loops and Conditional Statements en Help Center y File Exchange.

Etiquetas

Productos


Versión

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by