MATLAB Answers

How can I create a vector with specified NaNs' percentage?

1 view (last 30 days)
Rita
Rita on 2 Aug 2016
Edited: Rita on 31 Aug 2016
I have a vector with 3000 data which 500 of them are real NaNs which I am not going to do any analysis for real NaNs.I would like to add 20% and 40% of the whole data as artificial NaNs (which should not overlay with the real NaNs) with different gap length from 1 to 30.
Any advice much would be appreciated in advance.

  0 Comments

Sign in to comment.

Answers (0)

Sign in to answer this question.