|
"Husam Aldahiyat" <numandina@gmail.com> wrote in message <gmp98p$kfm$1@fred.mathworks.com>...
> "Osama Husain" <omhr81@yahoo.com> wrote in message <gmp2f9$aj2$1@fred.mathworks.com>...
> > Hi all, i m stuck in a situation that i would like to share in this forum. I have generated a figure in MATLAB having multiple curves. Legends of this curve were shown through the GUI "insert legend" button. Now i want to hide some of the legends while showing the others. Anyone help will be appreciated.
> >
> > Regards...
>
> Insert a legend in the code itself.
>
> LEGEND(H,string1,string2,string3, ...)
>
> where H is the handle(s) of the plots and the strings correspond to the handles.
>
> for example;
>
> t=0:.1:4
> y=cos(t)
>
> hold on
> h1=plot(t,y,'r')
> h2=plot(t,y.*2,'g')
> h3=plot(t,y./2,'b')
>
> legend([h1,h3],'cos','cos/2')
The issue is that i have already generated the figures and it requires 4 to 5 hrs to generate them. On top of that, i don't have the values or reading of the generated figures, so what possible method can i follow which can be applicable on the figure itself?
|