[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Another fsolve question -- Beginner
From: |
Jordi Gutiérrez Hermoso |
Subject: |
Re: Another fsolve question -- Beginner |
Date: |
Thu, 26 May 2011 17:03:39 -0500 |
On 26 May 2011 16:39, MMolloy <address@hidden> wrote:
> Hi Jordi,
>
> Many thanks for your reply. I had the ".*" in there so an earlier version
> would perform the operation on an element-by-element basis for the matrices
> I was using. I've tried some variations of what you have suggested:
>
> load E1.csv;
> function y = f (x)
> y = zeros(10,1);
> y = 1.14*exp( -x/1.14 ) - 3.79*exp( -x/3.79 ) - E1
> endfunction
> load RG.csv;
> [x, fval, info] = fsolve(@f, RG);
Sorry, this need "global E1" inside the function body.
> Output from "ps aux":
> 4607 2.7 50.3 1108628 903952 pts/0 R+ 22:05 0:51 octave3.2
>
> That's 900MB's - and it grows quickly!
I wonder if you found a memory leak. Can you tell me if just
for i=1:100
load E1.csv
endfor
makes your memory usage grow without bound? It doesn't seem to in the
dev sources, so perhaps it's an old memory leak that was patched since
3.2.4
Thanks,
- Jordi G. H.