Effacer les filtres
Effacer les filtres

zeros matrix

2 vues (au cours des 30 derniers jours)
Amit
Amit le 3 Fév 2012
Modifié(e) : T le 28 Sep 2013
I want to create vector of n by n zeros matrix from 1:k. How I can do. Plz help

Réponse acceptée

Sean de Wolski
Sean de Wolski le 3 Fév 2012
Huh?
doc zeros
Maybe:
zeros(n)
or
zeros(n,n,k)
  3 commentaires
Image Analyst
Image Analyst le 3 Fév 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 le 4 Fév 2012
In Matlab vectors are 2D also, but one dimension is singelton.

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Multidimensional Arrays dans Help Center et File Exchange

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by