MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn moreOpportunities for recent engineering grads.

Apply Today**New to MATLAB?**

Asked by Joe
on 19 Nov 2012

I was wondering how I could subtract values from two anonymous functions to yield a new function handle. for example:

f = @sin g = @cos

and I want to define

h = f - g, such that h = @(sin - cos)

*No products are associated with this question.*

## 0 Comments