Problem 45206. How to find the position of an element in a vector without using the find function
Write a function posX=findPosition(x,y) where x is a vector and y is the number that you are searching for.
Solution Stats
Problem Comments
Solution Comments
Show commentsProblem Recent Solvers40
Suggested Problems
-
Remove any row in which a NaN appears
8549 Solvers
-
Matrix indexing with two vectors of indices
714 Solvers
-
358 Solvers
-
701 Solvers
-
452 Solvers
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!