Jump to content

Replace multiple NaN elements in an array


Recommended Posts

I have an array that contains NaN values. I wrote a routine to remove a single NaN and replace it with the average of the next and previous points. The problem is what to do when there are multiple NaN values together. Has anyone written a routine to deal with that?

Thanks,

George

Never mind. I always forget how good Google is at finding these answers. Much easier than searching within a particular forum.

FYI here's the answer: https://decibel.ni.com/content/docs/DOC-5504

George

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.