comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: non linear systems, mpfitexpr and functargs
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: non linear systems, mpfitexpr and functargs [message #52358] Tue, 30 January 2007 14:14
Elix is currently offline  Elix
Messages: 2
Registered: January 2007
Junior Member
Yep. Seems to work. Thanks. Elix
Re: non linear systems, mpfitexpr and functargs [message #52360 is a reply to message #52358] Tue, 30 January 2007 10:59 Go to previous message
Vince Hradil is currently offline  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
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: Annoying message about X11 Resources on Solaris.
Next Topic: Re: Filter image with moving window and averaging pixels

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Fri Oct 10 16:25:29 PDT 2025

Total time taken to generate the page: 0.08285 seconds