Error using eig. Input matrix contains NaN or Inf.
Afficher commentaires plus anciens
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 commentaires
Walter Roberson
le 18 Oct 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
le 18 Oct 2020
Walter Roberson
le 18 Oct 2020
Where are you getting your lla2xyz from? I see a few different possible third-party packages.
Mohammed Soliman
le 18 Oct 2020
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Logical dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!