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

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 件のコメント

Walter Roberson
Walter Roberson 2022 年 12 月 1 日
What shows up for
nnz(data<0)
Chris
Chris 2022 年 12 月 2 日
It says "1"

サインインしてコメントする。

 採用された回答

Walter Roberson
Walter Roberson 2022 年 12 月 2 日

0 投票

[r, c, s] = find(data<0);
compose("Row %d column %d contains %g", r, c, s)

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeMultidimensional Arrays についてさらに検索

製品

タグ

質問済み:

2022 年 12 月 1 日

回答済み:

2022 年 12 月 2 日

Community Treasure Hunt

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

Start Hunting!

Translated by