I'm given data for x,y, and z. I want to plot a 3D plane in MATLAB using the surf command.
I have following data e.g
x= [1....
y= [0.001...
z= [0.996297743...
% Here x,y are independent variables and z is dependent variable.
% I could plot it using plot3 command
% But how should I plot it by using surf command in MATLAB?
% I have tried
% I even tried
[r,l]= meshgrid(x,y);
surf(r,l,z)
I'm not sure how to pass the arguments. Please Help!