[讨论] 请教一下 int 16转成 int 64 运算问题

楼主: longted3 (LONGTED)   2014-07-12 02:56:27
请教一下 因为我的值超出32767 int16 可以表示的范围 我要转乘int 64
以下是我的 却出现了??? Undefined function or method 'plus' for input arguments of type 'int64'.
Error in ==> cross at 8
sum=sum+cast(cnt(j,i),'int64');
以上是我的error message
底下是我的code
load('C:\Users\longted\Desktop\LAB_ntou\BCICIV_1calib_1000Hz_mat\BCICIV_calib_ds1c_1000Hz');
[cnt_row cnt_col]=size(cnt)
sum_array=[];
index=1;
for i=1:5
sum=int64(0);
for j=1:cnt_row
sum=sum+cast(cnt(j,i),'int64');
end
sum_array(i)=sum;%/cnt_row;
index=index+1;
disp(index);
end
要怎么改法 才可以 改成用int 64 的表示法
作者: jatj   2014-07-12 12:26:00

Links booklink

Contact Us: admin [ a t ] ucptt.com