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:
Plotting with a smooth curve

Subject: Plotting with a smooth curve

From: Martin

Date: 18 Mar, 2010 20:27:19

Message: 1 of 4

I'm quite sure there is a very straight foward solution to this but I can't seem to find guidance in the help pages!

Please can you someone tell me how to smooth the curve on my line plots!

Many thanks in advance!

Subject: Plotting with a smooth curve

From: Sadik

Date: 18 Mar, 2010 21:23:04

Message: 2 of 4

Hi Martin,

Maybe you could use medfilt1.

Best.

Subject: Plotting with a smooth curve

From: John D'Errico

Date: 19 Mar, 2010 00:00:37

Message: 3 of 4

"Martin " <oneaccount@hotmail.co.uk> wrote in message <hnu2b7$fgg$1@fred.mathworks.com>...
> I'm quite sure there is a very straight foward solution to this but I can't seem to find guidance in the help pages!
>
> Please can you someone tell me how to smooth the curve on my line plots!
>
> Many thanks in advance!

Interpolate the curve. Use interp1.

John

Subject: Plotting with a smooth curve

From: Martin

Date: 19 Mar, 2010 09:29:04

Message: 4 of 4

Thanks guys, both valid and both worked!

What I wanted was even more simple and I figure it out this morning. My dataset was large enough to change the export setup resolution such that the plot would have smooth curves!

Probably didn't explain myself properly! Thanks for your help as always.

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