MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi
Opportunities for recent engineering grads.
New to MATLAB?
Write a function that accepts two function handles f and g and returns the composition h. That is,
h = (f o g)(x) = f(g(x))
>> f = @(x)x^2;
>> g = @(x)x+1;
>> h = compose(f,g);
because (3+1)^2 = 16.