Error using eig. Input matrix contains NaN or Inf.
Mostrar comentarios más antiguos
Dear All,
While I am using the attached code (code1.m), I have got this error message:
------
Error using eig
Input matrix contains NaN or Inf.
Error in error_ellipse_fnc (line 18) [eigenvec, eigenval ] = eig(covariance);
------
For replicating the situation, I have attached a .mat (trial.mat) and the function files that contains all parameters needed for running the code.
Please could you check what could be the reason for such an error?
Thank you!
4 comentarios
Walter Roberson
el 18 de Oct. de 2020
That code will not run. Your error_ellipse_fcn code depends upon there being a variable named input with value 0 or 1. It looks like one of your parameters used to be named input but that it got replaces with ~ instead.
Your .mat file contains a number of different variables. What are you passing to your error_ellipse_fcn ?
Mohammed Soliman
el 18 de Oct. de 2020
Walter Roberson
el 18 de Oct. de 2020
Where are you getting your lla2xyz from? I see a few different possible third-party packages.
Mohammed Soliman
el 18 de Oct. de 2020
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Logical en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!