This solution is outdated. To rescore this solution, sign in.
-
2 Comments
Jorden van Leeuwen
on 10 Jan 2021
It should be mentioned in the problem that hotels and ratings are column vectors.
My solution
good = hotels(ratings >= cutoff)';
failed because I (imho correctly) assumed that a list is a row vector.
Hello Say
on 5 Oct 2021
cool
Suggested Problems
-
6676 Solvers
-
9511 Solvers
-
526 Solvers
-
1821 Solvers
-
514 Solvers
More from this Author13
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!