Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
Curve fitting without toolbox

Subject: Curve fitting without toolbox

From: M K

Date: 23 Feb, 2010 17:24:05

Message: 1 of 4

Does Matlab allow for basic curve fitting (linear) without the toolboox? An in-built function of some type perhaps?

Subject: Curve fitting without toolbox

From: Wayne King

Date: 23 Feb, 2010 17:34:20

Message: 2 of 4

"M K" <maha_k@mathworks.com> wrote in message <hm12vl$2en$1@fred.mathworks.com>...
> Does Matlab allow for basic curve fitting (linear) without the toolboox? An in-built function of some type perhaps?

Hi, yes, it does see

>>doc polyfit

Wayne

Subject: Curve fitting without toolbox

From: us

Date: 23 Feb, 2010 17:37:05

Message: 3 of 4

"M K" <maha_k@mathworks.com> wrote in message <hm12vl$2en$1@fred.mathworks.com>...
> Does Matlab allow for basic curve fitting (linear) without the toolboox? An in-built function of some type perhaps?

yes, there are many of them, let alone the basic engine, which allows you to -essentially- create your own fitting tbx from scratch...
eg,

     help polyfit;
     help slash;
% ...

us

Subject: Curve fitting without toolbox

From: Matt J

Date: 23 Feb, 2010 17:45:20

Message: 4 of 4

"M K" <maha_k@mathworks.com> wrote in message <hm12vl$2en$1@fred.mathworks.com>...
> Does Matlab allow for basic curve fitting (linear) without the toolboox? An in-built function of some type perhaps?
=================

If you have uniformly spaced samples and you want to curve fit using some linear combination of shifted kernels (e.g. B-splines), then this tool could help:

http://www.mathworks.com/matlabcentral/fileexchange/26292-regular-control-point-interpolation-matrix-with-boundary-conditions

It comes with examples for 1D and 2D cubic B-spline fitting.

 

Tags for this Thread

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us