[討論] 請教一下 int 16轉成 int 64 運算問題
請教一下 因為我的值超出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://www.ptt.cc/bbs/MATLAB/M.1405104990.A.B43.html
→
07/12 12:26, , 1F
07/12 12:26, 1F
MATLAB 近期熱門文章
PTT數位生活區 即時熱門文章
6
27