How to use linprog when i have variable ('A')= cell
Show older comments
Hello, I get the following error when i try to run the linprog command : error using linprog (line 144) LINPROG requires the following inputs to be of data type double: 'A'. All the other variables i have are double (f,b,Aeq,beq,lb) except from A which is a 35x1 cell.What can i do in order to convert A to type double.
Answers (1)
Azzi Abdelmalek
on 26 Aug 2016
A=cell2mat(A)
7 Comments
Alexandros Samp
on 26 Aug 2016
Azzi Abdelmalek
on 26 Aug 2016
post your code to see how A is used in linprog command
Alexandros Samp
on 26 Aug 2016
Edited: Azzi Abdelmalek
on 26 Aug 2016
Azzi Abdelmalek
on 26 Aug 2016
And what line gives the error?
Alexandros Samp
on 26 Aug 2016
Azzi Abdelmalek
on 26 Aug 2016
How do you want to use it with linprog? explain your problem?
Alexandros Samp
on 26 Aug 2016
Categories
Find more on Linear Programming and Mixed-Integer Linear Programming 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!