Borrar filtros
Borrar filtros

zeros matrix

2 visualizaciones (últimos 30 días)
Amit
Amit el 3 de Feb. de 2012
Editada: T el 28 de Sept. de 2013
I want to create vector of n by n zeros matrix from 1:k. How I can do. Plz help

Respuesta aceptada

Sean de Wolski
Sean de Wolski el 3 de Feb. de 2012
Huh?
doc zeros
Maybe:
zeros(n)
or
zeros(n,n,k)
  3 comentarios
Image Analyst
Image Analyst el 3 de Feb. de 2012
If that works, then we call that a 3D array, not a vector. I'd also call it a 3D matrix but I think some, like Steve Lord, consider a matrix as exactly 2 dimensions, no more and no less.
Jan
Jan el 4 de Feb. de 2012
In Matlab vectors are 2D also, but one dimension is singelton.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Multidimensional Arrays en Help Center y File Exchange.

Etiquetas

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by