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 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