Date: Dec 11, 2012 8:42 AM
Author: Debora
Subject: Re: graphs's title

Il giorno martedì 11 dicembre 2012 12:05:00 UTC+1, Nasser M. Abbasi ha scritto:
> On 12/11/2012 3:57 AM, Debora wrote:
>

> > I have an array called hello and contains six names, and each name should be
>
> >the title of my six graphs, how should I do?
>
> >
>
>
>
> use a loop?
>
>
>
> -----------------------
>
> names={'a','b','c','d','e','f'}
>
> N = length(names);
>
> x = 1:10;
>
> y = sin(x);
>
>
>
> for i = 1:N
>
> subplot(2,N/2,i);
>
> plot(x,y);
>
> title(names{i});
>
> end
>
> ---------------------
>
>
>
> --Nasser

thanks