How to get lower and upper bounds for portfolio optimization in Gui?

1 回表示 (過去 30 日間)
Mahir Cangökçe
Mahir Cangökçe 2022 年 6 月 3 日
回答済み: Mahir Cangökçe 2022 年 6 月 3 日
LowerBound = [app.EditField.ValueChangedFcn;app.EditField2.ValueChangedFcn;app.EditField3.ValueChangedFcn];
UpperBound= [0.5; 0.5; 0.5] I want to get bounds like this but ı am receiving error. (Nonscalar arrays of function handles are not allowed; use cell arrays instead.
P = setBounds(P, LowerBound, UpperBound)
% Value changed function: EditField
function EditFieldValueChanged(app, event)
value= app.EditField.Value;
app.LowerBound=value;
I have 3 edit fields like this. For 3 asset 3 weights.

採用された回答

Walter Roberson
Walter Roberson 2022 年 6 月 3 日
LowerBound = [app.EditField.Value;app.EditField2.Value;app.EditField3.Value];

その他の回答 (1 件)

Mahir Cangökçe
Mahir Cangökçe 2022 年 6 月 3 日
Walter it worked thank you

カテゴリ

Help Center および File ExchangePortfolio Optimization and Asset Allocation についてさらに検索

製品


リリース

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by