How to pass Options as an argument in quadprog

1 view (last 30 days)
Dear all,
In MATLAB help, the quadprog() function can be used with either
  • x = quadprog(H,f)
  • x = quadprog(H,f,A,b,Aeq,beq,lb,ub,x0,options)
I would like to pass "options" as an argument without pass other arguments like "A,b,Aeq,beq,lb,ub,x0". Is it possible to call the function in a way like this "x = quadprog(H,f,options)"?
Thank you in advance.

Accepted Answer

Stephen23
Stephen23 on 20 Aug 2019
x = quadprog(H,f,[],[],[],[],[],[],[],options)

More Answers (0)

Products

Community Treasure Hunt

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

Start Hunting!