Date: Feb 13, 2013 11:28 AM
Author: James Tursa
Subject: Re: How to read an n-dimensioned matrix from a binary file
"Jim " <psugrad1990@gmail.com> wrote in message <kfgcv4$61l$1@newscl01ah.mathworks.com>...

> I would like to write a Matlab script to read an N-dimensioned matrix created in Fortran. Specifically, the Fortran code wrote to a binary file using the following:

>

> write(30) a, b, c

>

> with the following declarations for a,b,c

>

> real a(16,20,22,6,3, 2)

>

> real b(16,20,22,6,3,13)

>

> real c(16,20,22,6,3,13)

>

> In Matlab, it seems that fread handles only a vector or 2-dimesional matrix

> fread(fileID, sizeA) where sizeA is a vector of size n or 2-dimensional matrix [m,n].

>

> How can I read the N-dimensioned matrix I described?

Cross-posted on Answers. See my comments there ...

James Tursa