From: Saga on
Hi,

If x = [1 2 3 4 5];

and I write x2 = "1:.1:5;"

what does x2 equal to...

I do not understand why you put 1:.1:5

Thanks
From: Sadik on
Hi Saga,

It means

x2 = [1 1.1 1.2 1.3 ... 4.8 4.9 5];

Best.


"Saga " <a5stargamescompany(a)googlemail.com> wrote in message <hlrb7m$97g$1(a)fred.mathworks.com>...
> Hi,
>
> If x = [1 2 3 4 5];
>
> and I write x2 = "1:.1:5;"
>
> what does x2 equal to...
>
> I do not understand why you put 1:.1:5
>
> Thanks
From: Wayne King on
"Saga " <a5stargamescompany(a)googlemail.com> wrote in message <hlrb7m$97g$1(a)fred.mathworks.com>...
> Hi,
>
> If x = [1 2 3 4 5];
>
> and I write x2 = "1:.1:5;"
>
> what does x2 equal to...
>
> I do not understand why you put 1:.1:5
>
> Thanks

Hi Saga, This is clearly explained in the MATLAB Getting Started Guide under Matrices and Arrays. There is a section entitled "The colon operator".

Hope that helps,
Wayne
From: Saga on
"Sadik " <sadik.hava(a)gmail.com> wrote in message <hlrbgu$pjq$1(a)fred.mathworks.com>...
> Hi Saga,
>
> It means
>
> x2 = [1 1.1 1.2 1.3 ... 4.8 4.9 5];
>
> Best.
>
>
> "Saga " <a5stargamescompany(a)googlemail.com> wrote in message <hlrb7m$97g$1(a)fred.mathworks.com>...
> > Hi,
> >
> > If x = [1 2 3 4 5];
> >
> > and I write x2 = "1:.1:5;"
> >
> > what does x2 equal to...
> >
> > I do not understand why you put 1:.1:5
> >
> > Thanks

Thank You. Sadik
 | 
Pages: 1
Prev: PCA
Next: Image processing despeckle algorithm?