[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
## Re: drawing line in graph

**From**: |
Paul Kienzle |

**Subject**: |
Re: drawing line in graph |

**Date**: |
Mon, 4 Mar 2002 09:19:52 -0500 |

This:
plot(rand(2,100),rand(2,100),";;")
is a lot faster than this:
plot(rand(2,1),rand(2,1),";;");
hold on; for i=2:100, plot(rand(2,1),rand(2,1),";;"); end; hold off
Paul Kienzle
address@hidden
On Sun, Mar 03, 2002 at 02:07:57PM +0100, Davide Cavallari wrote:
>* On Sun, Mar 03, 2002 at 11:55:14AM +0100, Davide Cavallari wrote:*
>* > How can I draw a line between 2 points? *
>* *
>* ehm, that was en error, I can draw a segment! However, I need to draw*
>* multiple segments on the same graph. For example, I have 4 points:*
>* *
>* a=[0,0]; b=[2,2]; c[4,0]; d=[4,2]*
>* *
>* and I want to join b with a and c and d. How can I do this?*
>* *
>* Finally, I will need to join this way a lot of points (I need to represent*
>* graphically a Kohonen Self-Organizing Map). Is there a way to simply join*
>* a pair of points, then another pair and so, all on the same graph? In this*
>* way infact I could use an iterative procedure.*
>* -- *
>* Cheers,*
>* Davide Cavallari *
>* Blessed be those who initiate lively discussions with the hopelessly mute,*
>* for they shall be know as Dentists.*
>* *
>* *
>* *
>* -------------------------------------------------------------*
>* Octave is freely available under the terms of the GNU GPL.*
>* *
>* Octave's home on the web: http://www.octave.org*
>* How to fund new projects: http://www.octave.org/funding.html*
>* Subscription information: http://www.octave.org/archive.html*
>* -------------------------------------------------------------*
>* *
-------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.
Octave's home on the web: http://www.octave.org
How to fund new projects: http://www.octave.org/funding.html
Subscription information: http://www.octave.org/archive.html
-------------------------------------------------------------