Extract elements from a matrix

9 visualizaciones (últimos 30 días)
Abhijit Das
Abhijit Das el 24 de Mzo. de 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

Respuestas (1)

Jan
Jan el 24 de Mzo. de 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)

Categorías

Más información sobre Resizing and Reshaping Matrices en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by