Files
FractionOrderSystem/FOTF Toolbox/simulink2019b/bench/bp7_opts.m

6 lines
173 B
Mathematica
Raw Normal View History

2023-11-14 17:10:27 +08:00
function y=bp7_opts(x)
W=get_param(gcs,'ModelWorkspace'); assignin(W,'a',x(1))
try, txy=sim('bp7_model'); y0=txy.yout; y=abs(y0(end)-exp(-1));
catch, y=10; end
end