Skip to content
This repository has been archived by the owner on Mar 5, 2024. It is now read-only.

Commit

Permalink
parallelization does not support a counter
Browse files Browse the repository at this point in the history
  • Loading branch information
badesar1 committed Mar 30, 2018
1 parent b602ed2 commit a2993bd
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions dki_fit.m
Expand Up @@ -137,7 +137,6 @@
in_ = outliers(:, i) == 0;
wi = w(:,i); Wi = diag(wi(in_));
dt(:, i) = lsqlin(Wi*b(in_, :),Wi*log(dwi(in_,i)),-C, d, [],[],[],[],[],options);
printcomp(i,nvoxels);
catch
dt(:, i) = 0;
end
Expand All @@ -153,7 +152,6 @@
logdwii = log(dwi(in_,i));
dt(:,i) = (Wi*b_)\(Wi*logdwii);
end
printcomp(i,nvoxels);
end
end

Expand Down Expand Up @@ -195,16 +193,3 @@
end
end
end

function printcomp(i,itot)
frac_now = ceil(i/itot*100);
frac_next = ceil((i+1)/itot*100);
if frac_next>frac_now
if i>1
for j=0:log10(i-1)
fprintf('\b');
end
end
fprintf('%s',[num2str(frac_now), '%']);
end
end

0 comments on commit a2993bd

Please sign in to comment.