Count number of matrix elements in a given vector
Show older comments
Background: Need to count the number of correct elements in a series of ranked lists.
I have a matrix where with j columns and 30 rows. Each column has the numbers 1:30 in random order. I have a vector "actual" with the numbers 1:30 in the correct order.
For each of the columns, how do I count the number of each columns elements that are in the correct place?
Accepted Answer
More Answers (0)
Categories
Find more on Creating and Concatenating Matrices 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!