Extract elements from a matrix

7 views (last 30 days)
Abhijit Das
Abhijit Das on 24 Mar 2012
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

Answers (1)

Jan
Jan on 24 Mar 2012
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)

Categories

Find more on Resizing and Reshaping Matrices 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!