How do you make this matrix?

4 vues (au cours des 30 derniers jours)
Karan Sandhu
Karan Sandhu le 3 Mar 2016
Commenté : Karan Sandhu le 3 Mar 2016
In the picture above, I have been tasked to recreate matrix e using any viable functions. However, I have been wrestling with it for hours so I would appreciate some assistance. This is my first programming class ever so I am struggling a lot doing this kind of stuff. Thanks for the help.

Réponse acceptée

Walter Roberson
Walter Roberson le 3 Mar 2016
kron(ones(3,3),kron(eye(2),ones(2,2)))
Note: kron is a somewhat advanced function to use for this. You should probably think about repmat()
  1 commentaire
Karan Sandhu
Karan Sandhu le 3 Mar 2016
Thank you sir.

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Matrix Indexing dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by