The Math Forum

Search All of the Math Forum:

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

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

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

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 ]

Posts: 13,022
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$>...
> 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]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.