From: Sara on 28 Jan 2010 15:44 I have a problem with some large mxArrays that I am returning from my mex function. These arrays are assigned to zero for a large portion of the periphery. However, when I look at them in Matlab, there is a string of NaN values along one edge. I tested these arrays before they leave the C++ portion (mex) of the code and there are no NaN values present. As an additional test, I printed the output data to a file and no NaN values are present. The mxArrays are created by duplicating an input array. They are approximately 1x15million members of type single. Any ideas or recommendations will be greatly appreciated.
From: James Tursa on 28 Jan 2010 17:00 "Sara " <swuenschel(a)gmail.com> wrote in message <hjssul$a7s$1(a)fred.mathworks.com>... > I have a problem with some large mxArrays that I am returning from my mex function. These arrays are assigned to zero for a large portion of the periphery. However, when I look at them in Matlab, there is a string of NaN values along one edge. I tested these arrays before they leave the C++ portion (mex) of the code and there are no NaN values present. > As an additional test, I printed the output data to a file and no NaN values are present. > The mxArrays are created by duplicating an input array. They are approximately 1x15million members of type single. > Any ideas or recommendations will be greatly appreciated. No way to give you a reasonable response without seeing your code, but it sounds like you have a bug in your code. James Tursa
|
Pages: 1 Prev: MLAPPClass times out in a multi threaded C# application Next: max and min |