MATLAB Answers

Classification of a whole matrix

15 views (last 30 days)
Alex Gordon
Alex Gordon on 19 Apr 2018
Commented: Image Analyst on 19 Apr 2018
All,
I have a series of matrices containing signal returns from a set of objects under illumination. I wish to classify the objects in to 2 categories, A or B based on the contents of the signal return matrices.
In other words, I wish to classify whether a series of matrices are type A or B but using the data from the whole of each matrix to do this.
Is there a way to use the classification learner app to do this and if not, any pointers?
Thnanks.

Answers (2)

njj1
njj1 on 19 Apr 2018
You could turn the matrix into a vector (e.g., X = X(:)), then use the resulting vector as input to the classification learner. You need to have examples of A and B type matrices to design a classifier, or you could use a clustering algorithm to see if the matrices naturally cluster together.

Image Analyst
Image Analyst on 19 Apr 2018

Well if we have no other information about the matrices, you could try deep learning. However if you know something about them, like they're images of either red flowers or blue flowers, then you could use traditional methods to measure those attributes, like is the matrix more red than blue, or more blue than red. Is there a spatial dependence among the elements? Why are the elements in a 2-D matrix rather than a 1-D vector? What distinguishes A from B? Can you simply look at the mean value? Or is it more complicated than that? You need to supply more context and show some small matrices as examples.

  2 Comments
Image Analyst
Image Analyst on 19 Apr 2018
If you display them as images, do the A images look different somehow than the B images? Or do they both just look like random noise, or there is no discernible difference between the way they look?

Sign in to comment.

Community Treasure Hunt

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

Start Hunting!