[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
defining a function from 2 other ones
From: |
oxyopes |
Subject: |
defining a function from 2 other ones |
Date: |
Thu, 16 Aug 2007 19:04:45 +0200 |
Hi,
I want to summe 2 functions and create a 3dr one.
Is it possible?
Example:
f=@(x,p) p*x
g=@(x,k) x.^k
h=@(x,p,k) f + g
h must be a defined function that i can input as curve
mocel in optimization functions like leasqr.
Thanks in advance for any tip ...
oxy :-)
- defining a function from 2 other ones,
oxyopes <=