Error using cellfun/wblfit

1 回表示 (過去 30 日間)
SkarletSam
SkarletSam 2020 年 10 月 28 日
回答済み: Divya Gaddipati 2020 年 11 月 2 日
Hi! I'm trying to apply weibull parameter estimate to every coloumn except for the first one i have on a table. Am I using the syntax correctly?
TtrnPosArray = table2array(TtrnPos);
C = num2cell(TtrnPosArray,1)
fitTableWbl = cellfun(@wblfit, C(:,2:171))
Thanks.

回答 (1 件)

Divya Gaddipati
Divya Gaddipati 2020 年 11 月 2 日
The input to wblfit should be a vector containing only positive values, as the error suggests.
Make sure your TtrnPosArray contains only positive values. You could remove/replace the columns which consist of non-positive numbers.

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by