sum two functions together

Hi,
I wanna sum two (or more) functions together, like image below.
What efficient way do you recommend?
Thank you.

4 个评论

USe Sum.
Amir
Amir 2019-6-28
编辑:Amir 2019-6-28
Each function define in its domain!
First function: from a to d,
Second function: from c to f,
Third function: from b to e.
fun1 = @(x)...;
fun2 = @(x)...;
fun3 = @(x)...;
fun_sum = @(x) fun1(x) + fun2(x) + fun3(x);
Thank you Torsten, It worked well.

请先登录,再进行评论。

回答(0 个)

类别

帮助中心File Exchange 中查找有关 Just for fun 的更多信息

提问:

2019-6-28

评论:

2019-6-28

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by