I am somewhat new to matlab and am trying to write some code that works with comparing a matrix A of size nxn to a set of matrices, all of size nxn. I have tried using the cellfun call in something like this cellfun(@(x)A==x,mycell,'Uniformoutput',false)..in this example mycell is the cell array of lets say m matrices of size nxn.
the second solution I have is multidimensional so if I have 3 matrices in my group of size nxn, call them A1, A2, A3 then I create Set( : , : , 1) = A1, Set( : , : , 2) = A2, etc...
But then I don't know how to compare each of the matrices in Set to the matrix A for equality.
Any help on this is much appreciated