From: John on
I am having trouble creating a lsqcurvefit and mesh plot of the following mxn matrix (3 columns, 64 rows).

Columns 1 and 2 represent different design parameters to plot along x and y axis and column 3 is the altitude i want to plot along the z axis.

It is suppose to show some peaks in the data so I can identify optimal design parameters of a rocket.

My biggest trouble is finding the least squares fit of the data to plot the mesh on top of. Any help is appreciated. I can send/post current m file if needed

CalmWind = [32.75,1,154;32.75,2,8619;32.75,3,8353;32.75,4,8032;32.75,5,7743;32.75,6,7478;32.75,7,7238;32.75,8,7017;
32,1,115;32,2,7433;32,3,8353;32,4,8031;32,5,7742;32,6,7478;32,7,7236;32,8,7017;
31.25,1,81;31.25,2,3983;31.25,3,8353;31.25,4,8031;31.25,5,7741;31.25,6,7477;31.25,7,7237;31.25,8,7017;
30.5,1,60;30.5,2,1304;30.5,3,7924;30.5,4,8032;30.5,5,7741;30.5,6,7478;30.5,7,7237;30.5,8,7017;
29.75,1,48;29.75,2,133;29.75,3,4893;29.75,4,7648;29.75,5,7740;29.75,6,7478;29.75,7,7237;29.75,8,7017;

29,1,44;29,2,72;29,3,355;29,4,3284;29,5,5240;29,6,6568;29,7,6999;29,8,6933;
28.25,1,101;28.25,2,43;28.25,3,51;28.25,4,66;28.25,5,83;28.25,6,406;28.25,7,1178;28.25,8,1758;
27.5,1,311;27.5,2,259;27.5,3,289;27.5,4,155;27.5,5,485;27.5,6,142;27.5,7,100;27.5,8,100]