Plot 3D surface from Excel .csv File
86 views (last 30 days)
I am trying to plot 3D surface from the attached excel csv file (data.csv).
I want the surface to be smooth if possible.
- x = first column;
- y = second column;
- z = third column.
I am new to Matlab and I have been struggling to do it. Could you please help me?
Also, how could I annotate the minumum of the surface and its x and y coordinates as well.
Thanks a lot!
Simon Chan on 29 Aug 2021
You may extract the data using function readmatrix.
rawdata = readmatrix('data.csv');
x = reshape(rawdata(:,1),,51); % Reshape the column matrix into 51 columns
y = reshape(rawdata(:,2),,51);
z = reshape(rawdata(:,3),,51);
result as follows: