| MATLAB Central > MATLAB Newsreader > Nan being converted in mex files |
|
|
|
Subject: Nan being converted in mex files From: Andreas Nielsen Date: 29 Apr, 2009 12:45:02 Message: 1 of 24 |
|
Hi, |
|
Subject: Nan being converted in mex files From: Andreas Nielsen Date: 29 Apr, 2009 13:05:04 Message: 2 of 24 |
|
I was a bit too fast on the send button so here goes another try. |
|
Subject: Nan being converted in mex files From: Bruno Luong Date: 29 Apr, 2009 13:19:02 Message: 3 of 24 |
|
"Andreas Nielsen" <muaddibspam@gmail.com> wrote in message <gt9ja0$f40$1@fred.mathworks.com>... |
|
Subject: Nan being converted in mex files From: Andreas Nielsen Date: 29 Apr, 2009 14:31:17 Message: 4 of 24 |
|
Im not sure how to attach files to this post, so instead I have pasted the code below. |
|
Subject: Nan being converted in mex files From: Andreas Nielsen Date: 29 Apr, 2009 14:44:02 Message: 5 of 24 |
|
Instead of the out_buf[... lines you could use the following lines instead: |
|
Subject: Nan being converted in mex files From: Bruno Luong Date: 29 Apr, 2009 14:46:02 Message: 6 of 24 |
|
Here is how your mex works on my side. Eveything seems OKl to me. |
|
Subject: Nan being converted in mex files From: Andreas Nielsen Date: 29 Apr, 2009 16:05:02 Message: 7 of 24 |
|
Yes, I agree. That looks perfectly alright. Here is what I get in your format: |
|
Subject: Nan being converted in mex files From: Andreas Nielsen Date: 29 Apr, 2009 16:19:02 Message: 8 of 24 |
|
Now I have tried on a uinx machine where I get the same result as you do. I guess this is a windows issue then, or maybe an Intel processor issue. |
|
Subject: Nan being converted in mex files From: Bruno Luong Date: 29 Apr, 2009 16:29:03 Message: 9 of 24 |
|
|
|
Subject: Nan being converted in mex files From: James Tursa Date: 29 Apr, 2009 20:14:01 Message: 10 of 24 |
|
"Bruno Luong" <b.luong@fogale.findmycountry> wrote in message <gt9v8e$orm$1@fred.mathworks.com>... |
|
Subject: Nan being converted in mex files From: James Tursa Date: 29 Apr, 2009 22:36:01 Message: 11 of 24 |
|
|
|
Subject: Nan being converted in mex files From: Rune Allnor Date: 29 Apr, 2009 13:05:11 Message: 12 of 24 |
|
On 29 Apr, 14:45, "Andreas Nielsen" <muaddibs...@gmail.com> wrote: |
|
Subject: Nan being converted in mex files From: Andreas Nielsen Date: 30 Apr, 2009 06:30:07 Message: 13 of 24 |
|
@James Tursa |
|
Subject: Nan being converted in mex files From: Bruno Luong Date: 30 Apr, 2009 06:58:02 Message: 14 of 24 |
|
"Andreas Nielsen" <muaddibspam@gmail.com> wrote in message <gtbghf$bbo$1@fred.mathworks.com>... |
|
Subject: Nan being converted in mex files From: James Tursa Date: 30 Apr, 2009 07:51:01 Message: 15 of 24 |
|
"Andreas Nielsen" <muaddibspam@gmail.com> wrote in message <gtbghf$bbo$1@fred.mathworks.com>... |
|
Subject: Nan being converted in mex files From: Andreas Nielsen Date: 30 Apr, 2009 08:13:01 Message: 16 of 24 |
|
@ James Tursa |
|
Subject: Nan being converted in mex files From: Bruno Luong Date: 30 Apr, 2009 08:36:01 Message: 17 of 24 |
|
"Andreas Nielsen" <muaddibspam@gmail.com> wrote in message <gtbmic$i80$1@fred.mathworks.com>... |
|
Subject: Nan being converted in mex files From: Andreas Nielsen Date: 30 Apr, 2009 08:51:00 Message: 18 of 24 |
|
Not on my side :( To avoid confusion I will specify exactly what I do. The function (void mexFunction...) is specified at the bottom. |
|
Subject: Nan being converted in mex files From: Bruno Luong Date: 30 Apr, 2009 09:12:01 Message: 19 of 24 |
|
|
|
Subject: Nan being converted in mex files From: James Tursa Date: 30 Apr, 2009 09:23:02 Message: 20 of 24 |
|
"Andreas Nielsen" <muaddibspam@gmail.com> wrote in message <gtbmic$i80$1@fred.mathworks.com>... |
|
Subject: Nan being converted in mex files From: Andreas Nielsen Date: 30 Apr, 2009 09:58:01 Message: 21 of 24 |
|
You both spotted my problem. As a shortcut I tested the output using just the dummy(), and not typecasting to the i64 first. This was a cause of the additional posts. It works now returning the true bits! |
|
Subject: Nan being converted in mex files From: Rune Allnor Date: 30 Apr, 2009 10:47:12 Message: 22 of 24 |
|
On 30 Apr, 08:30, "Andreas Nielsen" <muaddibs...@gmail.com> wrote: |
|
Subject: Nan being converted in mex files From: Andreas Nielsen Date: 30 Apr, 2009 11:47:02 Message: 23 of 24 |
|
As a final note and to explain a little of my confusion: |
|
Subject: Nan being converted in mex files From: Steven Lord Date: 30 Apr, 2009 14:36:26 Message: 24 of 24 |
|
|
A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.
Anyone can tag a thread. Tags are public and visible to everyone.
Contact us at files@mathworks.com
