From: Boby Philip on
I face the problem of getting NaN values for characteristic polynomial coefficients when I use poly function of the matlab for a 270x270 sparse matrix. Plz suggest some ways to overcome this problem.
From: Bruno Luong on
"Boby Philip" <philipboby(a)yahoo.co.in> wrote in message <i043eh$4p3$1(a)fred.mathworks.com>...
> I face the problem of getting NaN values for characteristic polynomial coefficients when I use poly function of the matlab for a 270x270 sparse matrix. Plz suggest some ways to overcome this problem.

Chance that the (high order) calculated coefficients of the characteristic polynomial of the matrix of that size is meaningless. I just wonder what you want to do with it.

But you could simply convert this matrix to full, then call POLY of the later.

Bruno
From: Boby Philip on
"Bruno Luong" <b.luong(a)fogale.findmycountry> wrote in message <i04f9d$7sd$1(a)fred.mathworks.com>...
> "Boby Philip" <philipboby(a)yahoo.co.in> wrote in message <i043eh$4p3$1(a)fred.mathworks.com>...
> > I face the problem of getting NaN values for characteristic polynomial coefficients when I use poly function of the matlab for a 270x270 sparse matrix. Plz suggest some ways to overcome this problem.
>
> Chance that the (high order) calculated coefficients of the characteristic polynomial of the matrix of that size is meaningless. I just wonder what you want to do with it.
>
> But you could simply convert this matrix to full, then call POLY of the later.
>
> Bruno
Thanks Bruno. In fact as u suggested I had tried with the 'full' as well. Still its coming the same. I needed that polynomial for a model reduction problem..
From: Matt J on
"Boby Philip" <philipboby(a)yahoo.co.in> wrote in message <i043eh$4p3$1(a)fred.mathworks.com>...
> I face the problem of getting NaN values for characteristic polynomial coefficients when I use poly function of the matlab for a 270x270 sparse matrix. Plz suggest some ways to overcome this problem.
=================

And you checked that nnz(~isfinite(YourMatrix)) is zero?
From: Boby Philip on
"Matt J " <mattjacREMOVE(a)THISieee.spam> wrote in message <i04osp$eul$1(a)fred.mathworks.com>...
> "Boby Philip" <philipboby(a)yahoo.co.in> wrote in message <i043eh$4p3$1(a)fred.mathworks.com>...
> > I face the problem of getting NaN values for characteristic polynomial coefficients when I use poly function of the matlab for a 270x270 sparse matrix. Plz suggest some ways to overcome this problem.
> =================
>
> And you checked that nnz(~isfinite(YourMatrix)) is zero?

Hi Matt
ya,I have obtained it as zero..