Using Loops to create a NxN identity Matrix
Afficher commentaires plus anciens
Write a function which creates and returns an N×N identity matrix. The function should accept the matrix size, N, as the only input. The function should set all elements of the matrix – not just the non-zero ones. The function should perform all operations on individual array elements (i.e. do not employ Matlab commands which operate on or create entire matrices/rows/columns).
1 commentaire
Dave Smith
le 16 Fév 2013
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Loops and Conditional Statements dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!