Syntax for custom requirement in sensitivity analysis

1 回表示 (過去 30 日間)
Gianmaria Giardina
Gianmaria Giardina 2022 年 11 月 3 日
回答済み: Bhavana Ravirala 2022 年 11 月 15 日
I searched on the internet to find a way to elaborate a sensitivity analysis using the dedicated Simulink app.
I found a code to declare my own custom requirement using the signals from the simulation scheme.
function obj = settle_time(data)
s = stepinfo(data.Nominal.Position.Data,data.Nominal.Position.Time);
obj = s.SettlingTime;
end
To evaluate the signal i wrote the above function(using the exact same code from the tutorial) but i get the error as follow:
So how do I get the data from the signal?

回答 (1 件)

Bhavana Ravirala
Bhavana Ravirala 2022 年 11 月 15 日
To change the sensitivity of the Simulink model you need the “Simulink Design Optimization Toolbox” installed in MATLAB. Try to run the code after installation.
If the issue is not resolved. Please share the error messages

カテゴリ

Help Center および File ExchangeControl Design in Simulink についてさらに検索

製品


リリース

R2020b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by