Thread Subject: Get indices for Parametrized Curves

Subject: Get indices for Parametrized Curves

From: Luca Cerone

Date: 25 Apr, 2008 16:04:03

Message: 1 of 2

Hi,
I have the following problem:
I have a time t=[0:0.01:1]
x=f1(t); y=f2(t); describing a parametric curve.

I plot it with: scatter(x,y)

I would like to know if there is a way to select a
particular segment of this curve clicking on the extremes.

I mean, I click on (x(5),y(5)) as first extreme and on
(x(25),y(25)) as the second extreme, I would like to get two
vectors: x_s=x(5:25) y_s=y(5:25).

Is there a way to do this?
I remember there was a function to obtain values from plots,
but I couldn't remember which one.

Thank you very much in advance!
Best wishes -Luca

Subject: Get indices for Parametrized Curves

From: us

Date: 25 Apr, 2008 16:10:03

Message: 2 of 2

"Luca Cerone":
<SNIP wants to select his/her points on a graph...

> I remember there was a function to obtain values from
plots, but I couldn't remember which one...

a hint:

     help ginput;

us

Tags for this Thread

Everyone's Tags:

Add a New Tag:

Separated by commas
Ex.: root locus, bode

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.

Tag Activity for This Thread
Tag Applied By Date/Time
reference us 25 Apr, 2008 12:10:12
ginput us 25 Apr, 2008 12:10:12
rssFeed for this Thread

Public Submission Policy

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Disclaimer prior to use.

Contact us at files@mathworks.com