problem solved thank you

3 visualizaciones (últimos 30 días)
john hollywood
john hollywood el 22 de Feb. de 2014
Editada: john hollywood el 23 de Feb. de 2014
thank you in ,much apprichated

Respuestas (1)

Walter Roberson
Walter Roberson el 22 de Feb. de 2014
Hint:
diag(a,b) + diag(c,d)
  4 comentarios
john hollywood
john hollywood el 22 de Feb. de 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 el 22 de Feb. de 2014
For a 5x5 matrix, the main diagonal needs to have 5 elements: [2 2 2 2 2].

Iniciar sesión para comentar.

Categorías

Más información sobre Creating and Concatenating Matrices en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by