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 件のコメント

KSSV
KSSV 2019 年 6 月 28 日
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.
Torsten
Torsten 2019 年 6 月 28 日
fun1 = @(x)...;
fun2 = @(x)...;
fun3 = @(x)...;
fun_sum = @(x) fun1(x) + fun2(x) + fun3(x);
Amir
Amir 2019 年 6 月 28 日
Thank you Torsten, It worked well.

サインインしてコメントする。

回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeJust 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