Problem 59546. Getting values from a vector
This exercise is for finding the values that meet your criteria.
a = [-5 28 7 83 73];
b = 23 ;
c = (a > b)
Then :
c =
0 1 0 1 1
What we are looking for now is how to get the values :
y =
28 83 73
Solution Stats
Problem Comments
-
2 Comments
Christian Schröder
on 9 Jan 2024
You seem to have swapped the correct answers for tests 1 and 2.
Abdelrahman Adel
on 10 Jan 2024
Thanks.
I fixed it
Solution Comments
Show commentsProblem Recent Solvers34
Suggested Problems
-
Project Euler: Problem 3, Largest prime factor
1431 Solvers
-
Project Euler: Problem 10, Sum of Primes
1717 Solvers
-
Who knows the last digit of pi?
662 Solvers
-
Back to basics 21 - Matrix replicating
1531 Solvers
-
Remove element(s) from cell array
1534 Solvers
More from this Author2
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!