formal initialisation of matrix
2 ビュー (過去 30 日間)
古いコメントを表示
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 件のコメント
採用された回答
その他の回答 (4 件)
Titus Edelhofer
2014 年 4 月 9 日
Hi Julien,
often you can use the function meshgrid for this...
Titus
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Matrix Indexing についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!