Extract elements from a matrix
9 ビュー (過去 30 日間)
古いコメントを表示
I have matrices 'a' m-by-m, 'b' n-by-n.
I want elements of the matrix c=a(5,5)*b(3,3)*a which is m-by-m matrix.
So can I directly find the elements of matrix [a(5,5)*b(3,3)*a] for given index??
suppose I need c(11,9), can I directly use the expression [a(5,5)*b(3,3)*a] to find element at (11,9)??
With regards -Abhijit Das
0 件のコメント
回答 (1 件)
Jan
2012 年 3 月 24 日
I'm not sure if I understand the question. But if you want the (11, 9) element of the matrix a(5,5) * b(3,3) * a, you can use:
a(5, 5) * b(3, 3) * a(11, 9)
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Resizing and Reshaping Matrices についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!