I have an array of structures with a field that stores a matrix in each record of the structure, as follows:
a(1).matrixfield = [1 2 3; 4 5 6; 7 8 9];a(2).matrixfield = [4 1 2; 5 6 7; 2 6 8];a(3).matrixfield = [5 1 2; 1 6 2; 1 7 1];
I would like to extract the matrix element (1,3) of "matrixfield" of all records in "a". In other words, I would like to be able to use a command such as:
a.matrixfield(1,3)
Best Answer