Borrar filtros
Borrar filtros

Why Does eig() Not Throw an Error for Non-Square, Symbolic Input?

1 visualización (últimos 30 días)
Example:
M = [sym(zeros(2));sym('m',[2 2])];
M(1,1) = 1
M = 
eig(M)
ans = 
But filling in the top partition of M does yield the expected result:
M(1:2,1:2) = sym('n',[2 2])
M = 
eig(M)
Error using sym/eig (line 51)
Matrix must be square.
Bug?

Respuesta aceptada

Arthi Sathyamurthi
Arthi Sathyamurthi el 28 de Mayo de 2021
This bug has been fixed and the updates will be available in the future release.
  2 comentarios
Paul
Paul el 28 de Mayo de 2021
Link to bug report?
Paul
Paul el 25 de Mayo de 2022
Fixed in 2022a
M = [sym(zeros(2));sym('m',[2 2])];
M(1,1) = 1
M = 
eig(M)
Error using sym/eig
Matrix must be square.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Symbolic Math Toolbox en Help Center y File Exchange.

Etiquetas

Productos


Versión

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by