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 Kommentare

KSSV
KSSV am 28 Jun. 2019
USe Sum.
Amir
Amir am 28 Jun. 2019
Bearbeitet: Amir am 28 Jun. 2019
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 am 28 Jun. 2019
fun1 = @(x)...;
fun2 = @(x)...;
fun3 = @(x)...;
fun_sum = @(x) fun1(x) + fun2(x) + fun3(x);
Amir
Amir am 28 Jun. 2019
Thank you Torsten, It worked well.

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Kategorien

Gefragt:

am 28 Jun. 2019

Kommentiert:

am 28 Jun. 2019

Community Treasure Hunt

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

Start Hunting!

Translated by