Create a nxn matrix with the same values
16 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
AnnaMaria Accardo
el 25 de Feb. de 2015
Comentada: Gangadhar Venkata Ramana
el 7 de Ag. de 2021
Hi all, Is there other methods to create an nxn matrix with the same values? I found a method which is
B(1:9, 1:9) = 3
that is perfect but, there is a different method?
0 comentarios
Respuesta aceptada
Rick Rosson
el 25 de Feb. de 2015
B = 3*ones(9);
2 comentarios
Gangadhar Venkata Ramana
el 7 de Ag. de 2021
Dear @Rick Rosson
I have been trying to multiply a scalar value to 2D matix inside the batch parallel processing.
I am unable to scale the matrix with the scalar value. An error showing, matix dimensions must agree.
Kindly suggest a solution.
Thank you
Más respuestas (0)
Ver también
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!