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

来源:学生作业帮助网 编辑:作业帮 时间:2024/11/24 09:59:28
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
xTj@}Pd2?IwRl/X$3&&QxQ EEƭw>Mp][( 999sH-Yb&ͷJW{q̯DH ha%)KE[tR-H%RQ*V C(d 9dGVqʴpy D͡xl痨- : !nRU՚QITSAmciEMhD}1USthKPuZm\4`8|r.aĤ. ׽8[V] >\T5Œĝ >U=%N541 ^iQ3LäY?(BesښS8 {4`BH,Gg2K̤0GDBSr‰I>-˦ .m晸$RTD\.!, 4= )BrZ @-B'*4肊=qX.VE4Vt\t(J}V{jFTQ^Z0?nWv_/jGx';<Ը(}7m[ݹכ_Nh~ad0n8t xr60ɩ)B  1+-)G@S &su r9wDSGoKf

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

你的数据输入有误,在每一行的结尾处有空格和换行,去掉就好了