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

3 views (last 30 days)
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?

Accepted Answer

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

More Answers (0)

Categories

Find more on Data Import and Analysis in Help Center and File Exchange

Products

Community Treasure Hunt

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

Start Hunting!