How to get lower and upper bounds for portfolio optimization in Gui?
Show older comments
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.
Accepted Answer
More Answers (1)
Mahir Cangökçe
on 3 Jun 2022
0 votes
Categories
Find more on Portfolio Optimization and Asset Allocation in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!