in reply to Re^4: Write Matlab binary MAT-files from Perl (binmode)
in thread Write Matlab binary MAT-files from Perl
Thanks tye for your help!
One last question, if you may.
Now that if finally works, I'm trying to save also an array of strings instead of numbers (strings with the same length, as matlab requires) .
Do you have any idea how should I change the routine above to write matrix with characters (text) in this binary MAT file?
I guess I should change the pack format string: 'l5Z*d*'.
From what you wrote at the beginning, I guess I should change the d (A double-precision float in native format) to some of the string/text options...
I tried several string/text options (a,A,Z,b,h) but none of them worked...
Some create zeros instead of characters, and some create illegal file that cannot be read by matlab...
Do you have any idea how should I change the 'pack' format string...?
Perhaps the format string is not enough...?
Thanks,
Koby
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^6: Write Matlab binary MAT-files from Perl (repeat)
by tye (Sage) on Jul 25, 2014 at 22:59 UTC | |
by Anonymous Monk on Jul 25, 2014 at 23:41 UTC | |
by Anonymous Monk on Jul 26, 2014 at 00:36 UTC | |
by BrowserUk (Patriarch) on Jul 26, 2014 at 01:07 UTC | |
by Anonymous Monk on Jul 26, 2014 at 09:12 UTC | |
| |
by Anonymous Monk on Jul 25, 2014 at 23:44 UTC | |
by Anonymous Monk on Jul 25, 2014 at 23:54 UTC |