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

javascript - jquery or ashx not working -

opencv - DataType<cv::detail::deriv_type>::depth what is it used for -

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