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:
EzyFit: import data

Subject: EzyFit: import data

From: Jessica

Date: 25 Feb, 2011 00:49:20

Message: 1 of 2

Hi,

I cannot quite figure out how to import data to curve fit using EzyFit. For example, I have the data:

x = 1000 2000 3000 4000;
y = 26.5970 37.7350 40.9000 44.4520;

I would like to fit an exponential curve to the data.

Thanks!

Subject: EzyFit: import data

From: Franck Dernoncourt

Date: 25 Feb, 2011 01:21:21

Message: 2 of 2

"Jessica" wrote in message <ik6uag$o21$1@fred.mathworks.com>...
> Hi,
>
> I cannot quite figure out how to import data to curve fit using EzyFit. For example, I have the data:
>
> x = 1000 2000 3000 4000;
> y = 26.5970 37.7350 40.9000 44.4520;
>
> I would like to fit an exponential curve to the data.
>
> Thanks!

Try:
x = [1000 2000 3000 4000];
y = [26.5970 37.7350 40.9000 44.4520];
plot(x,y);
showfit exp;

More info here: http://www.mathworks.com/matlabcentral/fx_files/10176/4/content/ezyfit/demo/html/efdemo.html

Tags for this Thread

No tags are associated with 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