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

1 回表示 (過去 30 日間)
Chris
Chris 2022 年 12 月 1 日
回答済み: Walter Roberson 2022 年 12 月 2 日
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 日
[r, c, s] = find(data<0);
compose("Row %d column %d contains %g", r, c, s)

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeSimulink についてさらに検索

タグ

製品

Community Treasure Hunt

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

Start Hunting!

Translated by