|
Re: non linear systems, mpfitexpr and functargs [message #52360 is a reply to message #52358] |
Tue, 30 January 2007 10:59  |
Vince Hradil
Messages: 574 Registered: December 1999
|
Senior Member |
|
|
Try mpfitfun
On Jan 30, 12:15 pm, "Elix" <elisa.costant...@gmail.com> wrote:
> Hi,
>
> in this newsgroup I found the interesting option of solving non-linear
> systems using mpfitexpr. I need to use mpfitexpr with the functargs
> keyword, but apparently I'm doing something wrong here.
>
> stru={iref:iref,i2:i2}
> p1=[0.3,0.5]
> expr='[stru.iref-(1.-p[0])-p[0]*exp(-p[1]),'+$
> 'stru.i2-(1.-p[0])-p[0]*exp(-p[1]*0.3)]'
> p=mpfitexpr(expr,0,0,1,p1,functargs=stru)
>
> % MPFITEXPR: ERROR: execution of "[stru.iref-(1.-p[0])-p[0]*exp(-
> p[1]),stru.i2-(1.-p[0])-p[0]*exp(-p[1]*0.3)]" failed.
>
> Any suggestion?
> thanks!
> Elix
|
|
|