From: "Bruno Luong" <b.luong@fogale.findmycountry>
Newsgroups: comp.soft-sys.matlab
Subject: Re: linear equation with restrictions
Date: Fri, 1 Aug 2008 08:57:02 +0000 (UTC)
Organization: FOGALE nanotech
Lines: 26
Message-ID: <g6uj4u$n2m$>
References: <g5sgla$b7r$> <g5sjfa$fbg$> <g5td8a$s9q$> <g5tep3$g7r$> <g5thqi$h7d$> <g5tj02$rj4$> <g5tleq$siu$> <g5ujb2$7c1$> <g5v5rm$iav$> <g60239$srl$> <g62uv6$r2k$> <g68au9$b8u$> <g6iaid$rrr$> <g6ic71$jqt$> <g6l6lu$40r$> <g6l7nl$hpr$> <g6lh5j$laa$> <g6qj0s$mut$> <g6qm7f$5mc$> <g6sgu6$f5s$> <g6st08$o4i$> <g6ubj2$6mb$>
Reply-To: "Bruno Luong" <b.luong@fogale.findmycountry>
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: 1217581022 23638 (1 Aug 2008 08:57:02 GMT)
NNTP-Posting-Date: Fri, 1 Aug 2008 08:57:02 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 390839
Xref: comp.soft-sys.matlab:483036

"Leon galushko" <> wrote in
message <g6ubj2$6mb$>...

> Sorry for pestering you with that but i'm unclear
> where would [a*cm1 = b-sum(a) and c=cm1+1] be belonging?
> If this refers to MainProg in m-file, thenn to what 
> syntax sequence have to be that

I let it to you to figure it out Leon.

> (i thought just you know your
> own code anyway better than me bein unexperienced in MathLab).

I'm sure you can do it on your own. Don't be hesitate to
play with the code.

Start with simple example, for example:

a = [770 105];
b = 4830;

There is three solutions c>=0, But only two c>0.