formal initialisation of matrix
Afficher commentaires plus anciens
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,
Réponse acceptée
Plus de réponses (4)
Titus Edelhofer
le 9 Avr 2014
0 votes
Hi Julien,
often you can use the function meshgrid for this...
Titus
lvn
le 9 Avr 2014
0 votes
Three alternative solutions posted here:
Julien
le 9 Avr 2014
0 votes
Julien
le 10 Avr 2014
0 votes
Catégories
En savoir plus sur Creating and Concatenating Matrices dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!