Basically. Say I have two functions like:
f1= @(x)(43*(x^3)+32)f2 = @(x) (34+9*x - 2*(x^2))
How do I combinde these functions together in matlab
f3= f1+f2
does not do it.
adding functions of the same variable to form a new functionadditionfunctionfunction handleMATLABsum
f1= @(x)(43*(x^3)+32)f2 = @(x) (34+9*x - 2*(x^2))
f3= f1+f2
Best Answer