MATLAB: How to make NxN matrix from excel dataset

importing excel data

Hi there,
I got excel dataset which has longitude(1xn)), latitude(1xn) and elevation(1xn) as described in the attached file.
How can I convert elevation dataset into NxN matrix?
Note: Data points are randomly distributed. not in exact order as described in the example.

Best Answer

griddata()