Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
Matrix Minimal Polynomial

Subject: Matrix Minimal Polynomial

From: Norbert

Date: 31 May, 2011 12:59:05

Message: 1 of 5

Hi.
I would like to know, how could I find the minimal polynomial of a given matrix. If someone could post here a code in matlab, it would be really appreciated. Thank you.

Subject: Matrix Minimal Polynomial

From: Roger Stafford

Date: 1 Jun, 2011 01:13:02

Message: 2 of 5

"Norbert" wrote in message <is2omp$g31$1@newscl01ah.mathworks.com>...
> Hi.
> I would like to know, how could I find the minimal polynomial of a given matrix. If someone could post here a code in matlab, it would be really appreciated. Thank you.
- - - - - - - - -
  Look at this site:

 http://www.mathworks.com/help/toolbox/mupad/linalg/minpoly.html

Roger Stafford

Subject: Matrix Minimal Polynomial

From: Pantelis S

Date: 8 Nov, 2011 11:58:11

Message: 3 of 5

"Roger Stafford" wrote in message <is43mu$ph5$1@newscl01ah.mathworks.com>...
> "Norbert" wrote in message <is2omp$g31$1@newscl01ah.mathworks.com>...
> > Hi.
> > I would like to know, how could I find the minimal polynomial of a given matrix. If someone could post here a code in matlab, it would be really appreciated. Thank you.
> - - - - - - - - -
> Look at this site:
>
> http://www.mathworks.com/help/toolbox/mupad/linalg/minpoly.html
>
> Roger Stafford

Is there a way to do the same using plain MATLAB (without MuPad). I guess MuPad uses symbolic algorithms to calculate the minimum polynomial - is there a function to do the same numerically? If not, is there a way to invoke linalg::minpoly from the workspace. By the way, to the best of my knowledge, the symbolic toolbox doesn't have support for minimal polynomials.

Subject: Matrix Minimal Polynomial

From: Pantelis S

Date: 8 Nov, 2011 11:59:12

Message: 4 of 5

"Roger Stafford" wrote in message <is43mu$ph5$1@newscl01ah.mathworks.com>...
> "Norbert" wrote in message <is2omp$g31$1@newscl01ah.mathworks.com>...
> > Hi.
> > I would like to know, how could I find the minimal polynomial of a given matrix. If someone could post here a code in matlab, it would be really appreciated. Thank you.
> - - - - - - - - -
> Look at this site:
>
> http://www.mathworks.com/help/toolbox/mupad/linalg/minpoly.html
>
> Roger Stafford

Is there a way to do the same using plain MATLAB (without MuPad). I guess MuPad uses symbolic algorithms to calculate the minimum polynomial - is there a function to do the same numerically? If not, is there a way to invoke linalg::minpoly from the workspace. By the way, to the best of my knowledge, the symbolic toolbox doesn't have support for minimal polynomials.

Subject: Matrix Minimal Polynomial

From: Christopher Creutzig

Date: 9 Nov, 2011 13:11:40

Message: 5 of 5

On 08.11.11 12:58, Pantelis S wrote:

> I guess MuPad uses symbolic algorithms to calculate the minimum polynomial - is there a function to do the same numerically?

I don't think so. You probably could create something starting from
polyfun's poly.m (which computes the characteristic polynomial) by
checking the kernel before adding in another multiplicity of an
Eigenvalue, but off-hand I'm not sure if that is numerically stable.

> If not, is there a way to invoke linalg::minpoly from the workspace.

feval(symengine, 'expr', feval(symengine, 'linalg::minpoly', A, 'x'))

Kind of ugly, I know.



Christopher

Tags for this Thread

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.

Contact us