std error (missing value)

Hi
i have some rows of error using the function like this: std(data)
i guess it's quite a standard usage of std
is it because too many rows (like 500+) are involved so some rows have missing std value?
what could be some other reasons?
Thanks everyone

1 件のコメント

Alan Stevens
Alan Stevens 2020 年 8 月 23 日
Upload the data.

回答 (1 件)

KSSV
KSSV 2020 年 8 月 23 日
編集済み: KSSV 2020 年 8 月 23 日

0 投票

What error you got exactly? Is your data a matrix? If so how it can have missing values? Missing values will be replaced by NaN's. If you have NaN'sin the matrix your need to use a nanflag ..informing either to include the nans or ignore the nans. Read the documentation.
You can fill the missing data/ NaN's using fillmissing if you want. You can also interpolation to fill the data.

2 件のコメント

Apple Tea
Apple Tea 2020 年 8 月 23 日
編集済み: Apple Tea 2020 年 8 月 23 日
Hi Thanks
the result std shows blank while all numbers are there in the matrix
i used: std(), isnan(),
is it because sometimes the denominator is 0 so std returns nothing?
what else can we use apart from nanstd() or std() ?
Steven Lord
Steven Lord 2020 年 8 月 23 日
Show us exactly how you call std and exactly what you receive from that call. Copy and paste it from the Command Window without any modification. That information may help us determine what's going on.

この質問は閉じられています。

タグ

質問済み:

2020 年 8 月 23 日

閉鎖済み:

2021 年 8 月 20 日

Community Treasure Hunt

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

Start Hunting!

Translated by