Re: Showing 2D coordinates
- From: roberson@xxxxxxxxxxxxxxxxxx (Walter Roberson)
- Date: Wed, 2 Apr 2008 20:44:10 +0000 (UTC)
In article <ft0q4q$qb8$1@xxxxxxxxxxxxxxxxxx>,
BlackIbanez <shotdowndead@xxxxxxxxxxx> wrote:
How can I print the intersection of 2 lines in a plot?
I'd like MATLAB to generate this point, and print it as text
on the graph.
EXAMPLE: http://img367.imageshack.us/img367/6427/rangeha2.jpg
Looks to me like something suitable for interp1() -- though
you will have to decide which interpolation to use for the case
where the selected special x coordinates do not happen to
exactly match the x coordinates of any plotted data. In your
example graph, probably simple linear interpolation would work,
but in cases where the graph was not as smooth, the choice of
interpolating function could make a significant difference in
the intersection point (e.g., suppose you were graphing a fractal.)
--
This is a Usenet signature block. Please do not quote it when replying
to one of my postings.
http://en.wikipedia.org/wiki/Signature_block
.
- Follow-Ups:
- Re: Showing 2D coordinates
- From: BlackIbanez
- Re: Showing 2D coordinates
- References:
- Showing 2D coordinates
- From: BlackIbanez
- Showing 2D coordinates
- Prev by Date: How to connect Matlab and SNMP
- Next by Date: Re: value retaining problem
- Previous by thread: Showing 2D coordinates
- Next by thread: Re: Showing 2D coordinates
- Index(es):
Relevant Pages
|
Loading