problem solved thank you
Mostrar comentarios más antiguos
thank you in ,much apprichated
Respuestas (1)
Walter Roberson
el 22 de Feb. de 2014
Hint:
diag(a,b) + diag(c,d)
4 comentarios
john hollywood
el 22 de Feb. de 2014
Walter Roberson
el 22 de Feb. de 2014
Did you try playing with the Example on the diag documetnation? Assign an integer value to "m" and then run the line of code and see what it gives. Then start picking apart the parts of the expression to see how the parts fit together.
john hollywood
el 22 de Feb. de 2014
Star Strider
el 22 de Feb. de 2014
For a 5x5 matrix, the main diagonal needs to have 5 elements: [2 2 2 2 2].
Categorías
Más información sobre Creating and Concatenating Matrices en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!