write a function that gives the indexes of rising or falling edge

x is a vector (assume it contains always at least one element) str is a string with value 'up' or 'down', describing if you must return indexes of rising or falling edges

Solution Stats

280 Solutions

105 Solvers

Last Solution submitted on Dec 06, 2026

Last 200 Solutions

Problem Comments

Solution Comments

Show comments
Loading...

Problem Recent Solvers105

Suggested Problems

Problem Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!