Borrar filtros
Borrar filtros

How to get smith form of a matrix in matlab

2 visualizaciones (últimos 30 días)
sakshi ahuja
sakshi ahuja el 25 de Mzo. de 2016
Comentada: Walter Roberson el 25 de Mzo. de 2016
When i tried this code: syms x A = [x^2 + 3, (2*x - 1)^2; (x + 2)^2, 3*x^2 + 5] S = smithForm(A) I got following error: Undefined function or method 'smithForm' for input arguments of type 'sym'. How to resolve this.

Respuesta aceptada

Roger Stafford
Roger Stafford el 25 de Mzo. de 2016
Editada: Walter Roberson el 25 de Mzo. de 2016
  3 comentarios
sakshi ahuja
sakshi ahuja el 25 de Mzo. de 2016
Editada: sakshi ahuja el 25 de Mzo. de 2016
When i used mupad, then it is succesfully givivng me smith form but when i tried to evaluate [S, U, V]; it is showing error. Error is in this line: [S, U, V] := linalg::smithForm(A, All)
Walter Roberson
Walter Roberson el 25 de Mzo. de 2016
The MATLAB interface to smithform is available only from R2015b. Before that you need to interface into the MuPAD linalg routine.
sakshi, are you executing those commands inside a MuPAD notebook? If you are then what error message are you receiving?

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Get Started with MuPAD en Help Center y File Exchange.

Etiquetas

Productos

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by