主题:MATLAB中矩阵输入
MATLAB求线性规划最优解时,输入矩阵A与B的长度相等,但A矩阵中含负数,就会出现
错误提示为The number of columns in A must be the same as the length of B
A=【7 8
1 3
-1 0
0 -1】
B=[56 12 0 0]
如果把A中的-1改为为1 则没有错误提示
错误提示为The number of columns in A must be the same as the length of B
A=【7 8
1 3
-1 0
0 -1】
B=[56 12 0 0]
如果把A中的-1改为为1 则没有错误提示