Thread Subject: pinv

Subject: pinv

From: munir

Date: 4 Nov, 2009 21:57:01

Message: 1 of 6

hi all
i want to find inverse of a matrix. but it is singular.so i used pinv.
but some error is occuring. i m not understanding its meaning n what
corrective actions has to take.
 ??? Error using ==> sym.svd
Too many input arguments.

Error in ==> pinv at 29
   [U,S,V] = svd(A,0);

Error in ==> Untitled17 at 238
o = pinv(l)

plz help me out.
thanks and regards

Subject: pinv

From: ade77

Date: 4 Nov, 2009 23:18:01

Message: 2 of 6



>
> Error in ==> pinv at 29
> [U,S,V] = svd(A,0);
>
> Error in ==> Untitled17 at 238
> o = pinv(l)

can you include the matrix in question

Subject: pinv

From: munir

Date: 5 Nov, 2009 08:30:08

Message: 3 of 6

On Nov 5, 4:18 am, "ade77 " <ade1...@gmail.com> wrote:
> > Error in ==> pinv at 29
> >    [U,S,V] = svd(A,0);
>
> > Error in ==> Untitled17 at 238
> > o = pinv(l)
>
> can you include the matrix in question

this is the type of matrix which is singular.it is much smaller than
what i ll be using.
keeassembly =
[ 250*pi*ep33s, 0, 250*pi*ep33s, 0]
[ 0, 250*pi*ep33a, 0, 250*pi*ep33a]
[ 250*pi*ep33s, 0, 250*pi*ep33s, 0]
[ 0, 250*pi*ep33a, 0, 250*pi*ep33a]

plz help. thank u.

Subject: pinv

From: munir

Date: 5 Nov, 2009 08:31:49

Message: 4 of 6

On Nov 5, 1:30 pm, munir <munirpans...@gmail.com> wrote:
> On Nov 5, 4:18 am, "ade77 " <ade1...@gmail.com> wrote:
>
> > > Error in ==> pinv at 29
> > >    [U,S,V] = svd(A,0);
>
> > > Error in ==> Untitled17 at 238
> > > o = pinv(l)
>
> > can you include the matrix in question
>
> this is the type of matrix which is singular.it is much smaller than
> what i ll be using.
> keeassembly =
> [ 250*pi*ep33s,            0, 250*pi*ep33s,            0]
> [            0, 250*pi*ep33a,            0, 250*pi*ep33a]
> [ 250*pi*ep33s,            0, 250*pi*ep33s,            0]
> [            0, 250*pi*ep33a,            0, 250*pi*ep33a]
>
> plz help. thank u.

where ep33s ep33a will be input values.

Subject: pinv

From: Steven Lord

Date: 5 Nov, 2009 15:31:54

Message: 5 of 6


"munir" <munirpansare@gmail.com> wrote in message
news:19fa6366-f064-4679-824f-fabe56ce387c@u36g2000prn.googlegroups.com...
> On Nov 5, 4:18 am, "ade77 " <ade1...@gmail.com> wrote:
> > > Error in ==> pinv at 29
> > > [U,S,V] = svd(A,0);
> >
> > > Error in ==> Untitled17 at 238
> > > o = pinv(l)
> >
> > can you include the matrix in question
>
> this is the type of matrix which is singular.it is much smaller than
> what i ll be using.
> keeassembly =
> [ 250*pi*ep33s, 0, 250*pi*ep33s, 0]
> [ 0, 250*pi*ep33a, 0, 250*pi*ep33a]
> [ 250*pi*ep33s, 0, 250*pi*ep33s, 0]
> [ 0, 250*pi*ep33a, 0, 250*pi*ep33a]

You can't invert this matrix; rows 1 and 3 are identical, as are rows 2 and
4. This means it's not full rank and so has no inverse. PINV won't help
either -- it's intended for numeric matrices, not symbolic matrices.

If you're trying to invert the matrix in order to solve a system of
equations, DON'T, repeat DO NOT INVERT IT. Instead use backslash (\) to
solve the system directly.

--
Steve Lord
slord@mathworks.com
comp.soft-sys.matlab (CSSM) FAQ: http://matlabwiki.mathworks.com/MATLAB_FAQ

Subject: pinv

From: munir

Date: 5 Nov, 2009 17:59:32

Message: 6 of 6

On Nov 5, 8:31 pm, "Steven Lord" <sl...@mathworks.com> wrote:
> "munir" <munirpans...@gmail.com> wrote in message
>
> news:19fa6366-f064-4679-824f-fabe56ce387c@u36g2000prn.googlegroups.com...
>
>
>
>
>
> > On Nov 5, 4:18 am, "ade77 " <ade1...@gmail.com> wrote:
> > > > Error in ==>pinvat 29
> > > > [U,S,V] = svd(A,0);
>
> > > > Error in ==> Untitled17 at 238
> > > > o =pinv(l)
>
> > > can you include the matrix in question
>
> > this is the type of matrix which is singular.it is much smaller than
> > what i ll be using.
> > keeassembly =
> > [ 250*pi*ep33s,            0, 250*pi*ep33s,            0]
> > [            0, 250*pi*ep33a,            0, 250*pi*ep33a]
> > [ 250*pi*ep33s,            0, 250*pi*ep33s,            0]
> > [            0, 250*pi*ep33a,            0, 250*pi*ep33a]
>
> You can't invert this matrix; rows 1 and 3 are identical, as are rows 2 and
> 4.  This means it's not full rank and so has no inverse.  PINVwon't help
> either -- it's intended for numeric matrices, not symbolic matrices.
>
> If you're trying to invert the matrix in order to solve a system of
> equations, DON'T, repeat DO NOT INVERT IT.  Instead use backslash (\) to
> solve the system directly.
>
> --
> Steve Lord
> sl...@mathworks.com
> comp.soft-sys.matlab (CSSM) FAQ:http://matlabwiki.mathworks.com/MATLAB_FAQ

thank u steve. i understand the solution.

Tags for this Thread

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

rssFeed for this Thread
 

MATLAB Central Terms of Use

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Terms prior to use.

Contact us at files@mathworks.com