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
MATLAB and Simulink resources for Arduino, LEGO, and Raspberry PiLearn more
Opportunities for recent engineering grads.Apply Today
New to MATLAB?Learn MATLAB today!
Play games and win prizes!Learn more