Eric, thanks for the suggestion.
I already have input files in Python which I am fighting to output the
simple text format I want but was hoping I could read the Matlab versions
directly into J if a utility already exists.
The Matlab .mat file spec seems straightforward but it may be simpler to
wrestle Python into submission.

On Wed, Nov 15, 2023 at 10:24 AM Eric Iverson <eric.b.iver...@gmail.com>
wrote:

> Devon,
> Python pandas can load matlab mat files. I think (but don't know) that it
> would be fairly straightforward to use the Jd pandas support (for parquet
> and other formats) to work with mat files. Google (pandas and matlab mat
> files) and the Jd jdrt'pandas' tutorial might be a way forward.
>
> The Jd support would be very general if you are looking at reading/writing
> many mat files. If this is a one time event there might be easier ways.
>
> On Tue, Nov 14, 2023 at 9:35 PM Devon McCormick <devon...@gmail.com>
> wrote:
>
> > Thanks!  I seem to recall writing a reader in APL or J a long time ago
> and
> > it was easy but I have no idea where the code is.
> >
> > On Tue, Nov 14, 2023 at 4:23 PM Jan-Pieter Jacobs <
> > janpieter.jac...@gmail.com> wrote:
> >
> > > I was curious and googled around a bit, finding this pdf, maybe it
> could
> > > help in case you're wanting to implement a Mat file reader:
> > > https://www.mathworks.com/help/pdf_doc/matlab/matfile_format.pdf
> > > which describes mat file levels 5 and 4. It seems current as it's been
> > > re-released in 2023. It looks a lot less complicated than what I
> expected
> > > :), but I never really needed it.
> > > Jan-Pieter.
> > >
> > > On Tue, Nov 14, 2023 at 9:50 AM 'Mike Day' via General <
> > > gene...@jsoftware.com> wrote:
> > >
> > > > Don't know, but Google tells me you can do so in R, and there's an R
> > > > interface
> > > > in addons/stats/r.   Might get you started,
> > > >
> > > > Mike
> > > >
> > > > Sent from my iPad
> > > >
> > > > > On 14 Nov 2023, at 04:10, Devon McCormick <devon...@gmail.com>
> > wrote:
> > > > >
> > > > > Has anyone written something to read Matlab ".mat" data files into
> > J?
> > > > >
> > > > > Thanks...
> > > > >
> > > > > --
> > > > >
> > > > > Devon McCormick, CFA
> > > > >
> > > > > Quantitative Consultant
> > > > >
> > ----------------------------------------------------------------------
> > > > > For information about J forums see
> > http://www.jsoftware.com/forums.htm
> > > >
> ----------------------------------------------------------------------
> > > > For information about J forums see
> http://www.jsoftware.com/forums.htm
> > > >
> > > ----------------------------------------------------------------------
> > > For information about J forums see http://www.jsoftware.com/forums.htm
> > >
> >
> >
> > --
> >
> > Devon McCormick, CFA
> >
> > Quantitative Consultant
> > ----------------------------------------------------------------------
> > For information about J forums see http://www.jsoftware.com/forums.htm
> >
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
>


-- 

Devon McCormick, CFA

Quantitative Consultant
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to