formal initialisation of matrix
Mostrar comentarios más antiguos
Hi,
I would like to know if it's possible to create a matrix A by giving the value of every coefficient A(i,j). Something like that :
A(i,j) = i+j
I would like to do this directly when the matrix is created, not using the double for i, for j.
Thankyou for your answer,
Respuesta aceptada
Más respuestas (4)
Titus Edelhofer
el 9 de Abr. de 2014
0 votos
Hi Julien,
often you can use the function meshgrid for this...
Titus
lvn
el 9 de Abr. de 2014
0 votos
Three alternative solutions posted here:
Julien
el 9 de Abr. de 2014
0 votos
Julien
el 10 de Abr. de 2014
0 votos
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!