slib-discuss
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Slib-discuss] [Jacal-discuss] Matfile


From: Pjotr Kourzanov
Subject: Re: [Slib-discuss] [Jacal-discuss] Matfile
Date: Mon, 06 Jun 2011 10:20:25 +0200

Sending to correct ML now.

Of course I can save from Matlab/Octave to plain text files, but that
is a suboptimal solution as it requires custom post-processing to get 
the data in Scheme-friendly shape.

In the meanwhile, I figured out that latest Matlab emits data in HDF5
format by default. Any plans to support that in near future?

I get the same for the file you sent:

> (matfile:read "mymatfile.mat")

;ERROR: "/usr/share/slib/byte.scm": array-ref: Wrong type in arg1
#<CLOSURE bytes "/usr/share/slib/byte.scm": args (list- ...
; in expression: (address@hidden address@hidden address@hidden)
; in scope:
;   (idx . address@hidden)
;   new
;   (len . address@hidden)
;   (bts)  procedure bytes-copy
; defined by load: "/usr/share/slib/byte.scm"

;STACK TRACE
1; (address@hidden ((idx (address@hidden address@hidden 1) (+ -1 idx))) 
((address@hidden address@hidden) ne ...
2; ((address@hidden (address@hidden address@hidden)))
3; (address@hidden ((type (address@hidden 4 address@hidden)) (mrows 
(address@hidden 4 ...
4; (address@hidden ((mats (address@hidden ()) (cons mat mats)) (mat 
(address@hidden:rea ...
5; (address@hidden ((ans (address@hidden address@hidden address@hidden)))  
(address@hidden address@hidden ...
6; (address@hidden:read "mymatfile.mat")



> 
On Sat, 2011-06-04 at 22:34 -0400, Aubrey Jaffer wrote: 
> | From: Pjotr Kourzanov <address@hidden>
>  | Date: Tue, 24 May 2011 11:25:21 +0200
>  | 
>  | Dear Jacal developer(s),
>  | 
>  | I am having trouble reading Matlab v4 files in Jacal (using latest 
>  | Jacal, Slib and Scm 5e5):
> 
> The MATFILE module is in SLIB, not JACAL.
> 
>  | > (matfile:read "foo.mat")
>  | 
>  | ;ERROR: "/usr/share/slib/byte.scm": array-ref: Wrong type in arg1
>  | #<CLOSURE bytes "/usr/share/slib/byte.scm": args (list- ...
>  | ; in expression: (address@hidden address@hidden address@hidden)
>  | ; in scope:
>  | ;   (idx . address@hidden)
>  | ;   new
>  | ;   (len . address@hidden)
>  | ;   (bts)  procedure bytes-copy
>  | ; defined by load: "/usr/share/slib/byte.scm"
>  | 
>  | ...
>  | Is Matfile supposed to work nowadays? Can someone send a sample v4
>  | file to check?
> 
> Attached is a very small matfile.  Larger matfiles are available from:
> <http://www.it.lut.fi/ip/research/color/database/download.html>
> <http://www.cs.joensuu.fi/~spectral/databases/download/munsell_aotf.htm>





reply via email to

[Prev in Thread] Current Thread [Next in Thread]