So I've finally found a reason to give MATLAB a whirl and I'm already running into some issues finding clear answers for this question. Either that or my inexperience is not allowing me to understand where to find exactly what I want.
Essentially I have a table in excel of X and Y values. These coordinates have a Z value, yet many (50-75%) are missing this value so I'd like MATLAB to interpolate or spline for these missing value to the best of it's ability. Just so y'all have an idea of what I'm talking about I'll attach a truncated data set in csv format.
My initial idea was to graph it all in a 3D scatter plot, fit a surface to it, then find the value where that surface interpolates over the missing data. My issue with this is (1) not knowing how to deal with the missing value going into MATLAB, should I input them as NaN? And (2) how to form a tight fitting surface to my data and not a best-fit equation of sorts.
My end goal is to just obtain these Z value estimates so if there's a better way of going about this I'm all ears. Thank y'all so much!
Best Answer