How i can create one specific matrix 100X100?
9 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Arhs
el 12 de En. de 2015
Respondida: kavya k
el 16 de Mayo de 2017
The form of the matrix is

How i can create that can anyone help?
0 comentarios
Respuesta aceptada
Star Strider
el 12 de En. de 2015
Editada: Star Strider
el 12 de En. de 2015
This works:
v = -[1:100]';
vu = triu(repmat(v, 1, size(v,1)));
vl = tril(repmat(-v', size(v,1), 1));
out = vu + vl + diag(-v);
2 comentarios
Más respuestas (1)
kavya k
el 16 de Mayo de 2017
how to create a 240*320 matrix containing the data 0.1991 in all the cells.can anyone help me.
0 comentarios
Ver también
Categorías
Más información sobre Resizing and Reshaping Matrices en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!