Path: news.mathworks.com!not-for-mail
From: "chet " <chetsunar@yahoo.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: could anyone help home with this?
Date: Wed, 8 Jun 2011 16:36:05 +0000 (UTC)
Organization: Universit&#228;t Stuttgart
Lines: 44
Message-ID: <iso8dl$ft7$1@newscl01ah.mathworks.com>
References: <islfh6$ei4$1@newscl01ah.mathworks.com> <ism4cr$j2k$1@newscl01ah.mathworks.com> <c3180e67-87ec-4657-a340-cdd387fa8d3a@v12g2000vby.googlegroups.com>
Reply-To: "chet " <chetsunar@yahoo.com>
NNTP-Posting-Host: www-03-blr.mathworks.com
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: newscl01ah.mathworks.com 1307550965 16295 172.30.248.48 (8 Jun 2011 16:36:05 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Wed, 8 Jun 2011 16:36:05 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 2717470
Xref: news.mathworks.com comp.soft-sys.matlab:730871

ok I got that the inverse does nt  work here.........I need to take out the inverse of the matrix A to get the other matrix a. so how am i supposed to find the inverse if this syntax does not work? 


Torsten <Torsten.Hennig@umsicht.fraunhofer.de> wrote in message <c3180e67-87ec-4657-a340-cdd387fa8d3a@v12g2000vby.googlegroups.com>...
> On 8 Jun., 16:10, "chet " <chetsu...@yahoo.com> wrote:
> > so how am i supposed to do Roger? as i'm new to matlab, so lots of problem... would be nice if u tell me straight way,
> >
> >
> >
> > "Roger Stafford" wrote in message <ism4cr$j2...@newscl01ah.mathworks.com>...
> > > "chet " <chetsu...@yahoo.com> wrote in message <islfh6$ei...@newscl01ah.mathworks.com>...
> > > > ......
> > > > a(i,j)=pinv(A(i,j));
> > > > ......
> > > - - - - - - - -
> > >   Chet, as dpb has pointed out to you in thread 308864, the inverse of a matrix is very definitely not the same thing as the matrix of the inverses of its elements, and the same applies to the pinv's in this thread.  In both 'inv' and 'pinv' all you get using scalars are their (conjugate) reciprocals.
> >
> > > Roger Stafford- Zitierten Text ausblenden -
> >
> > - Zitierten Text anzeigen -
> 
> 
> for i = 1:3
>   for j = 1:3
> 
>     A(i,j)= Qbar1(i,j)*h +Qbar2(i,j)*h +Qbar3(i,j)*h +Qbar4(i,j)*h ; %
> calc of A matrix
>     A_1(i,j) = Qbar1(i,j)*h ; %A matrix for 0 degree
>     A_2(i,j)= Qbar2(i,j)*h ; %A matrix for 45 degree
>     A_3(i,j)= Qbar3(i,j)*h; %A matrix for 90 degree
>     A_4(i,j)= Qbar4(i,j)*h ; %A matrix for -45 degree
> 
>   end
> end
> 
> a=pinv(A);
> a_1=pinv(A_1); % calc of a matrix the inverse of A matrix... %Warning:
> Matrix is singular to working precision.
> a_2=pinv(A_2);
> a_3=pinv(A_3);
> a_4=pinv(A_4);
> 
> Best wishes
> Torsten.