Re: The concept of a record
- From: glen herrmannsfeldt <gah@xxxxxxxxxxxxxxxx>
- Date: Wed, 30 Jan 2008 21:01:09 -0800
qsc wrote:
(snip)
I know this part of knowledge about Fortran. My question should have
been put this way: with X written out as in the example, what shape
would it be of the matrix A = fread(fid)? Here fread is the matlab
command. For a matrix in matlab, the shape (n,1) and (1,n) look
visually differently, although internally they may both be stored as a
sequence of numbers in the memory. It turns out that the matrix has
the shape (n,1).
The shape is not written into the file by Fortran. Most likely they
come out (n). That is, a 1D array, but I don't know matlab enough
to say. If you write an n by m array in one unformatted WRITE
n*m elements will be written, again without any shape.
In R, one can change the shape after they have been read. I presume
matlab can do that, too.
-- glen
.
- References:
- The concept of a record
- From: qsc
- Re: The concept of a record
- From: Klaus Wacker
- Re: The concept of a record
- From: qsc
- Re: The concept of a record
- From: Gordon Sande
- Re: The concept of a record
- From: qsc
- The concept of a record
- Prev by Date: Automatically transform or expand do loop in a subroutine
- Next by Date: Re: Automatically transform or expand do loop in a subroutine
- Previous by thread: Re: The concept of a record
- Next by thread: Re: The concept of a record
- Index(es):
Relevant Pages
|