Given an integer factor f and a range defined by xlow and xhigh inclusive, return a vector of the multiples of f that fall in the specified range.
f = 10; xlow = 35; xhigh = 112; multiples = bounded_multiples(f, xlow, xhigh);
multiples = [ 40 50 60 70 80 90 100 110 ];
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