MATLAB: How can I plot x,y with showing the gap because there are missing data
axisgapmissingplot
Hi guys, I am beginner in Matlab I want to plot x axis for years starts from 1982-2014 and I have missing data in (1994) and (2000). I wanted to plot x,y with showing gap which represented by 1994 and 2000.
Thank you
Reyadh
Best Answer
InsertNaN in place of the missing data in your dependent variable‘y’ vector. Be sure that the lengths of yourx andy vectors are the same.
Like that, each value of "a" is correlated to each value of "b", but applying the formula of the correlation, the correlation of two single numbers is NaN. To compute the correlation correctly, traspose the input vectors
Best Answer