Extract elements from a matrix

9 ビュー (過去 30 日間)
Abhijit Das
Abhijit Das 2012 年 3 月 24 日
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

回答 (1 件)

Jan
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)

カテゴリ

Help Center および File ExchangeResizing and Reshaping Matrices についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by