For Programmers: Free Programming Magazines  


Home > Archive > Matlab > June 2007 > Get bytes of MATLAB data









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Get bytes of MATLAB data
Ming-Jyi Wu

2007-06-29, 7:14 pm

Hi,
What's the MATLAB equivalence instruction of C 'union' or FORTRAN
'equivalence', by which we can get, for example, high byte and low
byte of MATLAB int16, or 8 bytes of MATLAB double?

Wu
Peter Boettcher

2007-06-29, 7:14 pm

"Ming-Jyi Wu" <WUMINJ@MS5.HINET.NET> writes:

> Hi,
> What's the MATLAB equivalence instruction of C 'union' or FORTRAN
> 'equivalence', by which we can get, for example, high byte and low
> byte of MATLAB int16, or 8 bytes of MATLAB double?


The function typecast, but only in recent MATLAB versions. Previous
versions can get some of this functionality with u8read on the FEX.

-Peter
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com