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
In reply to Re^5: Write Matlab binary MAT-files from Perl (binmode)
by Anonymous Monk
in thread Write Matlab binary MAT-files from Perl
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |