Video length is 2:36

Using and Removing NaN in MATLAB Plots

(Originally posted on Doug's MATLAB Video Tutorials blog.)

This is a quick technique that came out of the series we have been doing about the cryptography algorithm. If you have NaN ("Not A Number") in your data, MATLAB will ignore them in a plot. If this is what you want, that is great. If it is not, you will need to remove them. A technique for removing them from your vector is shown here. The technique would work for other data you want to remove also.

Recorded: 31 Aug 2012

Related Products