簡単な質問.. lsqcurvefit の上限を 1 つだけ設定して、他の上限を制限することはできますか?
次のようなものが必要です:
lb = [0 0 0];
ub = [~ ~ 5];
ありがとう!
簡単な質問.. lsqcurvefit の上限を 1 つだけ設定して、他の上限を制限することはできますか?
次のようなものが必要です:
lb = [0 0 0];
ub = [~ ~ 5];
ありがとう!
からhelp lsqcurvefit
:
X = LSQCURVEFIT(FUN,X0,XDATA,YDATA,LB,UB) は、下限と下限のセットを定義します。
upper bounds on the design variables, X, so that the solution is in the range LB <= X <= UB. Use empty matrices for LB and UB if no bounds exist. Set LB(i) = -Inf if X(i) is unbounded below; set UB(i) = Inf if X(i) is unbounded above.
そうです、Dan Becker は正しいです。
lb = [ 0 0 0];
ub = [inf inf 5];
トリックを行います。