How to use linprog when i have variable ('A')= cell
Mostrar comentarios más antiguos
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.
Respuestas (1)
Azzi Abdelmalek
el 26 de Ag. de 2016
A=cell2mat(A)
7 comentarios
Alexandros Samp
el 26 de Ag. de 2016
Azzi Abdelmalek
el 26 de Ag. de 2016
post your code to see how A is used in linprog command
Alexandros Samp
el 26 de Ag. de 2016
Editada: Azzi Abdelmalek
el 26 de Ag. de 2016
Azzi Abdelmalek
el 26 de Ag. de 2016
And what line gives the error?
Alexandros Samp
el 26 de Ag. de 2016
Azzi Abdelmalek
el 26 de Ag. de 2016
How do you want to use it with linprog? explain your problem?
Alexandros Samp
el 26 de Ag. de 2016
Categorías
Más información sobre Linear Programming and Mixed-Integer Linear Programming en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!