formal initialisation of matrix
Mostra commenti meno recenti
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,
Risposta accettata
Più risposte (4)
Titus Edelhofer
il 9 Apr 2014
0 voti
Hi Julien,
often you can use the function meshgrid for this...
Titus
lvn
il 9 Apr 2014
0 voti
Three alternative solutions posted here:
Julien
il 9 Apr 2014
0 voti
Julien
il 10 Apr 2014
0 voti
Categorie
Scopri di più su Matrix Indexing in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!