Path: news.mathworks.com!newsfeed-00.mathworks.com!newscon02.news.prodigy.net!prodigy.net!news.glorb.com!news.aset.psu.edu!news.cse.psu.edu!elk.ncren.net!newsflash.concordia.ca!canopus.cc.umanitoba.ca!not-for-mail
From: roberson@ibd.nrc-cnrc.gc.ca (Walter Roberson)
Newsgroups: comp.soft-sys.matlab
Subject: Re: Solve Array of symbolic functions
Date: Tue, 30 Oct 2007 16:06:18 +0000 (UTC)
Organization: National Research Council Canada - Conseil national de rechereches Canada
Lines: 20
Message-ID: <fg7kpq$2vn$1@canopus.cc.umanitoba.ca>
References: <fg7h3s$mk1$1@fred.mathworks.com>
NNTP-Posting-Host: origin.ibd.nrc.ca
X-Trace: canopus.cc.umanitoba.ca 1193760378 3063 192.70.172.160 (30 Oct 2007 16:06:18 GMT)
X-Complaints-To: abuse@cc.umanitoba.ca
NNTP-Posting-Date: Tue, 30 Oct 2007 16:06:18 +0000 (UTC)
Originator: roberson@ibd.nrc-cnrc.gc.ca (Walter Roberson)
Xref: news.mathworks.com comp.soft-sys.matlab:435275



In article <fg7h3s$mk1$1@fred.mathworks.com>,
Quint Segers <q.segers@gmail.com> wrote:
>if A1 is an array of symbolic funtions:
>A1=
>              -a1+a2-a3+a4
> -1/27*a1+1/9*a2-1/3*a3+a4
>  1/27*a1+1/9*a2+1/3*a3+a4
>               a1+a2+a3+a4
>
>Why can't I use solve like:
>
>[a1, a2, a3, a4] = solve('A1(1)=1', 'A1(2)=0', 'A1(3)
>=0', 'A1(4)=0', a1, a2, a3, a4);

Try,

[a1, a2, a3, a4] = solve([A1(1) '=1'], A1(2), A1(3), A1(4), a1, a2, a3, a4)
-- 
  "There are some ideas so wrong that only a very intelligent person
  could believe in them."                            -- George Orwell