Prev: image overlapping
Next: transparent figure
From: Roberto on 25 Apr 2010 08:26 Hi all, I am working with a very large matrix [640x640x640] I had to convert from double to single in order to be possible to acomodate it in memory. Due the fact that Matlab do a copy of the input arguments in function I am not able to work with the matrix in a recursive function. So I solved the problem working with global variable. second problem was the recursion I had to extend the limit of 500 for recursivelly calling of the function, but Matlab crashed.. Now I am considering to use Mex. But in my readings (net, Matlab docs, etc..) tells me that I can not work with the memory address of the matrix in order to alter it. My question is, I am right?
From: Rune Allnor on 25 Apr 2010 09:59 On 25 apr, 14:26, "Roberto " <roberto...(a)gmail.com> wrote: > Now I am considering to use Mex. But in my readings (net, Matlab docs, etc..) tells me that I can not work with the memory address of the matrix in order to alter it. My question is, I am right? You *can* do it, possibly with some trickery to throw off some compiler safeguards. At your own risk, of course. The better way is to divide the problem and work on many smaller matrices. Rune
|
Pages: 1 Prev: image overlapping Next: transparent figure |