problem solved thank you

3 vues (au cours des 30 derniers jours)
john hollywood
john hollywood le 22 Fév 2014
Modifié(e) : john hollywood le 23 Fév 2014
thank you in ,much apprichated

Réponses (1)

Walter Roberson
Walter Roberson le 22 Fév 2014
Hint:
diag(a,b) + diag(c,d)
  4 commentaires
john hollywood
john hollywood le 22 Fév 2014
sorry i really confuse diag([2 2 2 2 ]), diag([-1 -1 -1 -1], 2), diag([-1 -1 -1 -1],-1) i got this but its not giving the right answer . what am doing wrong ?
Star Strider
Star Strider le 22 Fév 2014
For a 5x5 matrix, the main diagonal needs to have 5 elements: [2 2 2 2 2].

Connectez-vous pour commenter.

Catégories

En savoir plus sur Creating and Concatenating Matrices dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by