MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi test
Opportunities for recent engineering grads.
New to MATLAB?
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