Using only "eye" and "zeros" ...
Mostra commenti meno recenti
Hi,
I'm doing some unsolved exercises I've been assigned and there is this one that I can't seem to find the answer to (teacher is unavailable so I can't ask him).
I need to obtain the following matrix by only adding matrices made with the commands "eye" and "zeros". That's all it says. This is the matrix I need to obtain:
2 1 0
0 2 1
0 0 2
And needs to be for NxN (any square dimension). Is this really possible? Thanks.
Risposta accettata
Più risposte (0)
Categorie
Scopri di più su Startup and Shutdown in Centro assistenza e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!