Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Solve Array of symbolic functions
Date: Tue, 30 Oct 2007 15:03:24 +0000 (UTC)
Organization: Technische Universiteit Eindhoven
Lines: 20
Message-ID: <fg7h3s$mk1$1@fred.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: webapp-05-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1193756604 23169 172.30.248.35 (30 Oct 2007 15:03:24 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Tue, 30 Oct 2007 15:03:24 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1166974
Xref: news.mathworks.com comp.soft-sys.matlab:435257



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);

But must I manually insert all the values of A1 like this?:

[a1, a2, a3, a4] = solve('-a1+a2-a3+a4=1', '-1/27*a1+1/9*a2-
1/3*a3+a4=0', '1/27*a1+1/9*a2+1/3*a3+a4=0', 'a1+a2+a3+a4=0',
 a1, a2, a3, a4)[a1, a2, a3, a4] = solve('-a1+a2-
a3+a4=1', '-1/27*a1+1/9*a2-
1/3*a3+a4=0', '1/27*a1+1/9*a2+1/3*a3+a4=0', 'a1+a2+a3+a4=0',
 a1, a2, a3, a4)