Dynamic-Calibration/utils/YALMIP-master/extras/fiordos_call.m

8 lines
239 B
Mathematica
Raw Normal View History

2019-12-18 11:25:45 +00:00
function x = fiordos_call(solver,param,B0,b0,mask,map,dimout)
mparams.be = b0 + B0*param(mask);
mres = solver(mparams);
allx = [nan;mres.x];% map=0 corresponds to stuff that really weren't in the model
x = reshape(allx(1+map),dimout);