标题: 有没有matlab最新教程啊 [打印本页] 作者: 八千里路 时间: 2012-7-2 23:54 标题: 有没有matlab最新教程啊 >> c=[-5,4,2];/ }, p( I4 y: Y
a=[6,-1,1;1,2,4];( j4 \& y, _; P% P6 p
b=[8,10];- k- O: _, Q: ] n i2 k
vlb=[-1,0,0];# i4 R, j0 `4 U2 W" |/ b
vub=[3,2];0 q' N4 }9 W. e5 e6 X# m$ M
[x,lam]=lp(c,a,b,vlb,vub)$ j) o/ K, S3 D1 ^( Y
??? Undefined function or method 'lp' for input arguments of type 'double'. ) k( L+ q3 V. I7 j) V 3 W. {, v' C2 c4 x2 V* x3 p g>> [x,lam]=linprog(c,a,b,vlb,vub) L' C9 K- w& r- f2 t3 t4 W??? Error using ==> linprog at 192 $ K0 B# v1 A. f) `: n0 r2 T2 }The number of rows in Aeq must be the same as the length of beq. 7 r @, s% l! L7 L6 e0 s8 r这个错误的程序咋纠正啊,急急急急!% l: b2 [; c v! D( J" I4 g& i) C- D
注:用的是matlab2010b作者: life段会 时间: 2013-9-1 19:21