Extract elements from a matrix
7 views (last 30 days)
Show older comments
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 Comments
Answers (1)
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)
0 Comments
See Also
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!