Skip to content


Subversion checkout URL

You can clone with
Download ZIP


NMatrix::IO::MATLAB, parsing doubles #23

tdy opened this Issue · 4 comments

2 participants


Hi, I tried loading some of my mat data like this:

require "nmatrix"

I was getting some strange values back, so I used some dummy data just for testing purposes. It seems that everything is fine as long as the original data only have integers, but as soon as any doubles are introduced, I get weird results.

For example, #load_mat is showing -1.5423487136706484e-180, but in MATLAB it's 1.1. Not sure if something is buggy or if I'm just missing something obvious.

Original data were from:

  • 64-bit Win7
  • MATLAB R2012a

Trying to parse the data on:

  • 64-bit Arch Linux
  • ruby 1.9.3-p286 rev 37165
  • nmatrix 0.0.2



Yes, if you could attach some fake data where the same bug pops up, that would be great. I don't have easy access to MATLAB.

Incidentally, here would be the more appropriate place: SciRuby/nmatrix#48

@mohawkjohn mohawkjohn closed this

By the way, I see that you indicated attachments, but I think they were stripped. Can you please email to john.woods at marcottelab dot org?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.