Borrar filtros
Borrar filtros

i want to initialize a matrix of 3x3 to value -1 how this colud be done?

2 visualizaciones (últimos 30 días)
M=zeros(3,3); intialize M with zeros of 3x3 but what to do if i want to initialize it with -1
i.e
-1 -1 -1
-1 -1 -1
-1 -1 -1
can anybody help me

Respuesta aceptada

Yao Li
Yao Li el 11 de Abr. de 2013

Más respuestas (0)

Categorías

Más información sobre Logical 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!

Translated by