Closed zoeschindler closed 1 year ago
For anyone else having the same issue: I contacted the author of the package. The solution is to replace all three occurrences of [~,T] = min(dist(ind,best));
with [~,T] = min(Data.CylDist(ind,best));
. Apparently, this bug did not impact the selection of the optimal input parameters, but only the choice of the single best QSM.
Hello everyone,
when trying to use
select_optimum()
I ran into some problems and wanted to ask for advice. I tried the following:However, I got errors:
When looking into the code of the
select_optimum()
function, I saw that in lines 304 + 316 + 326, a variable calleddist
is called without ever being created. Is it maybe supposed to beData.CylDist
? (UsingdistM
orOptDist
did not work, but replacing it withData.CylDist
actually did work.)