Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.


Math Forum » Discussions » Software » comp.soft-sys.matlab

Topic: Typecasting After Reading in Large Binary File
Replies: 9   Last Post: Mar 1, 2013 12:22 PM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
ImageAnalyst

Posts: 12,934
Registered: 12/26/06
Re: Typecasting After Reading in Large Binary File
Posted: Feb 27, 2013 10:16 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

"Scott" wrote in message <kgloic$s1b$1@newscl01ah.mathworks.com>...
> I'm reading in a large binary file ...
> A = 7000x2 matrix of uint8
> B = typecast(A,'int16')
> Desired Result:
> B = 7000x1 array of int16 where each int16 is derived from each row in A.

=========================================
Not sure what the problem was, but 7000 by 2 is actually very small. It's not like you have tens of millions of numbers or anything. 14,000 elements is a pretty small array by today's standards. Even a garden variety digital image is about 30 thousand times bigger than that.



Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.