作者longted3 (大头看不起我恨阿)
看板MATLAB
标题[讨论] 请教一下 int 16转成 int 64 运算问题
时间Sat Jul 12 02:56:27 2014
请教一下 因为我的值超出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 的表示法
--
※ 发信站: 批踢踢实业坊(ptt.cc), 来自: 118.167.157.89
※ 文章网址: http://webptt.com/cn.aspx?n=bbs/MATLAB/M.1405104990.A.B43.html