Path: news.mathworks.com!not-for-mail
From: "Ben Hinkle" <bhinkle@mathworks.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Solve Array of symbolic functions
Date: Tue, 30 Oct 2007 14:58:32 -0400
Organization: The MathWorks, Inc.
Lines: 27
Message-ID: <fg7usr$27n$1@fred.mathworks.com>
References: <fg7h3s$mk1$1@fred.mathworks.com> <fg7kpq$2vn$1@canopus.cc.umanitoba.ca>
Reply-To: "Ben Hinkle" <bhinkle@mathworks.com>
NNTP-Posting-Host: hinkleb.dhcp.mathworks.com
X-Trace: fred.mathworks.com 1193770715 2295 172.31.57.121 (30 Oct 2007 18:58:35 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Tue, 30 Oct 2007 18:58:35 +0000 (UTC)
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.3138
X-RFC2646: Format=Flowed; Original
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198
Xref: news.mathworks.com comp.soft-sys.matlab:435308




"Walter Roberson" <roberson@ibd.nrc-cnrc.gc.ca> wrote in message 
news:fg7kpq$2vn$1@canopus.cc.umanitoba.ca...
> 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)

Will that concatenation work? An alternative:

[a1, a2, a3, a4] = solve(A1(1)-1, A1(2), A1(3), A1(4), a1, a2, a3, a4)