MATLAB Answers

How to pass Options as an argument in quadprog

2 views (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.

  0 Comments

Sign in to comment.

Accepted Answer

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

  0 Comments

Sign in to comment.

More Answers (0)

Sign in to answer this question.


Translated by