How do I compare two similar sized matrices?
Show older comments
Hi all!
I have two 76x2000 matrices and I would like to compare them to see which one is always higher. What is the best way for me to go about this? A function that would allow me to put in different pairs would be most appreciated.
Thank you!
6 Comments
Geoff Hayes
on 21 Aug 2016
Lakyn - please clarify what you mean by to see which one is always higher. What does higher mean to you?
Lakyn
on 21 Aug 2016
per isakson
on 22 Aug 2016
Edited: per isakson
on 22 Aug 2016
is_higher = A > B;
is_higher = gt( A, B );
will return a <76x2000 logical> array. Is that what you are looking for?
Lakyn
on 22 Aug 2016
per isakson
on 22 Aug 2016
Edited: per isakson
on 22 Aug 2016
"what do you mean by a 76x2000 logical array"   there is a good answer in the middle of Introducing MATLAB Fundamental Classes (Data Types)
I still don't fully understand what you mean by "matrices have a higher value". The example you provided above explains "higher" regarding scalars, not matrices. Please give a small example regarding matrices. See Norm (mathematics) and Vector and matrix norms.
Lakyn
on 22 Aug 2016
Accepted Answer
More Answers (0)
Categories
Find more on Logical 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!