When I used "gamfit(data)", it says "X must be non-negative."

1 vue (au cours des 30 derniers jours)
Chris
Chris le 1 Déc 2022
I have 45000*1 data table and all of values are non negative.
When I used "gamfit(data)", it says "X must be non-negative." Would you help me please?
  2 commentaires
Walter Roberson
Walter Roberson le 1 Déc 2022
What shows up for
nnz(data<0)
Chris
Chris le 2 Déc 2022
It says "1"

Connectez-vous pour commenter.

Réponse acceptée

Walter Roberson
Walter Roberson le 2 Déc 2022
[r, c, s] = find(data<0);
compose("Row %d column %d contains %g", r, c, s)

Plus de réponses (0)

Catégories

En savoir plus sur Simulink dans Help Center et File Exchange

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by