From: yaya yoyo on
"Bruno Luong" <b.luong(a)fogale.findmycountry> wrote in message <hls9u2$6v$1(a)fred.mathworks.com>...
> > Didn't understand. Can you please give an example for how you "pass the array of handles of the selected lines as the first argument to LEGEND" ???
> > Thank you :)
>
> h=plot(rand(10,5))
> legend(h([1 end]), 'first','last')
>
> % Bruno


It works!
Thank you :)