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 commentaires

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

Connectez-vous pour commenter.

Réponses (0)

Catégories

En savoir plus sur Just for fun dans Centre d'aide et File Exchange

Question posée :

le 28 Juin 2019

Commenté :

le 28 Juin 2019

Community Treasure Hunt

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

Start Hunting!

Translated by