matlab老是提示?f= | Error:Expression or statement is incomplete or incorrect.f=[67200,67200,96000,96000,64800,64800,69120,64800,57600,64800,43200,135000,92160,100000,67200,67200,96000,96000,64800,64800,69120,64800,57600,64800,43200,135000,92160,1
matlab老是提示?f= | Error:Expression or statement is incomplete or incorrect.f=[67200,67200,96000,96000,64800,64800,69120,64800,57600,64800,43200,135000,92160,100000,67200,67200,96000,96000,64800,64800,69120,64800,57600,64800,43200,135000,92160,1
matlab老是提示?f= | Error:Expression or statement is incomplete or incorrect.
f=
[67200,67200,96000,96000,64800,64800,69120,64800,57600,64800,43200,135000,92160,100000,672
00,67200,96000,96000,64800,64800,69120,64800,57600,64800,43200,135000,92160,100000,92160,1
00000,57600,64800,43200,135000,92160,100000,92160,92160,100000,92160,100000,92160,92160,50
000,86400];
D=[64,88,193 ,193,128 ,120,120,120,110,120 ,64,247 ,190 ,210,70 ,85 ,192 ,195 ,128 ,
120,120,120,110,160,70 ,256 ,190,210,190,205,110,160,70,256 ,190,210,
190 ,190,210,200,150 ,150,180,70,120];
M=-0.9*D;
N=0.8*D;
A=[N;M];
b=[5600;5600];
[x,fval]=bintprog(f,A,b)
matlab老是提示?f= | Error:Expression or statement is incomplete or incorrect.f=[67200,67200,96000,96000,64800,64800,69120,64800,57600,64800,43200,135000,92160,100000,67200,67200,96000,96000,64800,64800,69120,64800,57600,64800,43200,135000,92160,1
你的数据输入有误,在每一行的结尾处有空格和换行,去掉就好了