- Code: Select all
function HumLogKGPU
temp = gzeros(1,1000);
gfor iloop = 1:1000
temp(iloop) = temp(iloop) +iloop;
gend
temp(1:10)
function a
end
end
when delete
- Code: Select all
function a
end
it's OK!
but with subfunction a it's wrong :
>> HumLogKGPU
Error using gfor
failed to create iterator in this scope (src/matlab/calls/gfor.cpp:236)
Error in HumLogKGPU (line 4)
gfor iloop = 1:1000