casting - MATLAB: convert array of int8 to int16 with half its size -


i have array <610x1 int8> read database in matlab , want convert <305x1 int16> since data saved int16. using function "int16" array <610x1 int16>.

if data in file, use "fread(fid, filesize,'int16')" not want save und read afterwards.

a solution typecast(input,'int16')


Comments

Popular posts from this blog

hibernate - How to load global settings frequently used in application in Java -

python 3.x - Mapping specific letters onto a list of words -

objective c - Ownership modifiers with manual reference counting -