Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations waross on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

3D best fit tendline

Status
Not open for further replies.

knfs

Aerospace
May 19, 2006
2
0
0
GB
Help much appreciated;

When using griddata and meshgrid to produce a 3D plot is there anyway to fit a trendline rather than just interpolate between the results.

Currently the experimental data used produces a somewhat 'wavey' plot. It would be much improved if a smoother plot could be achieved by fitting a surface through the data rather than interpolating between results.

Thanks
 
Replies continue below

Recommended for you

i don't know how to do you are asking for, but ...

your data won't be improved by adding a trend line ...

the presentation of your data might, but then maybe the "waviness" is an important technical detail.
 
The experimental data i have shows some noise in the signal. A trendline would help to reduce the impact of this on the plot and allow a more 'useful' plot to be drawn.

comments welcomed
 
Report the data on Excel and go to the ‘Chart’ menu and click on the ‘Add Trendline’ option.
Click the ‘Options’ tab in the window . Check the ‘Display equation on chart’ option and click ‘OK’. This plots a linear fit and gives the slope and the offset of the fit.
 
Status
Not open for further replies.
Back
Top