MATLAB: Creating 3D graph

3d plotsarrayfunctiongraphsMATLABplottable

Hi,
Quite new to matlab. I am looking to plot a 3D surface.
I have three inputs;
Beta; 1×71
Lambda; 101×1
and Cp: 101×71
The values of Cp correspond to the values of beta and lambda. I am wondering if anyone has any tips on the best method to do this. I also have the created a table that I could import in excel if that is a useful step.
Thanks

Best Answer

This way, see the surf plot
Beta=rand(1,71); % Change Data, here random sample data


Lambda=rand(101,1); % Change Data, here random sample data
[x,y]=meshgrid(Beta,Lambda);
Cp=rand(101,71); % Change Data, here random sample data
surf(x,y,Cp);
grid on;