How to use linprog when i have variable ('A')= cell
Ältere Kommentare anzeigen
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.
Antworten (1)
Azzi Abdelmalek
am 26 Aug. 2016
A=cell2mat(A)
7 Kommentare
Alexandros Samp
am 26 Aug. 2016
Azzi Abdelmalek
am 26 Aug. 2016
post your code to see how A is used in linprog command
Alexandros Samp
am 26 Aug. 2016
Bearbeitet: Azzi Abdelmalek
am 26 Aug. 2016
Azzi Abdelmalek
am 26 Aug. 2016
And what line gives the error?
Alexandros Samp
am 26 Aug. 2016
Azzi Abdelmalek
am 26 Aug. 2016
How do you want to use it with linprog? explain your problem?
Alexandros Samp
am 26 Aug. 2016
Kategorien
Mehr zu Linear Programming and Mixed-Integer Linear Programming finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!