Got Questions? Get Answers.
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:
Drawing a graph

Subject: Drawing a graph

From: Luka Gruden

Date: 12 Sep, 2008 09:44:02

Message: 1 of 2

Hi!

I am new to matlab and I would like to know if there is an option to draw a graph and import it into matlab and get the coresponding points (x,y) out of it. For example I have a graph and I need to get the points that define it out of it in order to get it mathematicaly evaluated and write them into a matrix.

Thanks for your replies.

Luka

Subject: Drawing a graph

From: Dave Brackett

Date: 18 Sep, 2008 11:04:03

Message: 2 of 2

"Luka Gruden" <lukagruden7@gmail.com> wrote in message <gaddl2$mgf$1@fred.mathworks.com>...
> Hi!
>
> I am new to matlab and I would like to know if there is an option to draw a graph and import it into matlab and get the coresponding points (x,y) out of it. For example I have a graph and I need to get the points that define it out of it in order to get it mathematicaly evaluated and write them into a matrix.
>
> Thanks for your replies.
>
> Luka

Hi, what do you mean exactly by 'draw a graph'? in what form would this graph be in? as a picture? if so, then perhaps there are some image processing functions which can extract the line.

However, I would have thought that it would be easier to just read the graph yourself, take some coordinate points, and recreate the graph in matlab. Interpolation techniques could then be used to fit a curve to the data. Can you provide an example of the graph you have?

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