formal initialisation of matrix
4 views (last 30 days)
Show older comments
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,
0 Comments
Accepted Answer
More Answers (4)
Titus Edelhofer
on 9 Apr 2014
Hi Julien,
often you can use the function meshgrid for this...
Titus
0 Comments
See Also
Categories
Find more on Logical in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!