My code takes so long to execute
조회 수: 1 (최근 30일)
이전 댓글 표시
My code works fine until it gets to this block. This loop takes too long to execute. Is there any way to solve this problem?
if ~exist('nworkers','var'), nworkers = 0; end % default nworkers to zero
r1 = rad(1);
parfor (i = 1 : numel( kru ), nworkers)
jlu(:,i) = sbesselj ( lkr, kru(i) );
djlu(:,i) = dsbesselj ( l, kru(i) );
if ru(i) > r1
hlu(:,i) = sbesselh ( lkr, kru(i) );
dhlu(:,i) = dsbesselh ( l, kru(i) );
end
end
답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Bessel functions에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!