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

apache - Remove .php and add trailing slash in url using htaccess not loading css -

javascript - jQuery show full size image on click -