how to use linprog?

4 次查看(过去 30 天)
Prashanna Jain
Prashanna Jain 2016-2-8
评论: Matt J 2016-2-9
Error using linprog (line 233)
The number of columns in A must be the same as the number of elements of f.
Error in code3 (line 283)
x=linprog(f,D,y);
i got this error while using linprog
the dimensions are A N*2N, y N*1 and i need coefficients of dimension 2N*1 via l1 minimization. Is it possible? What do i do with the variable f in the function?

回答(1 个)

Matt J
Matt J 2016-2-8
Check that the length of f matches the number of columns of A.
  5 个评论
Prashanna Jain
Prashanna Jain 2016-2-9
yes i wrote code 3. okay i will look into it

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Solver Outputs and Iterative Display 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by