Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
what does x2 = "1:.1:5;" mean URGENT

Subject: what does x2 = "1:.1:5;" mean URGENT

From: Saga

Date: 21 Feb, 2010 13:08:06

Message: 1 of 4

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

Subject: what does x2 = "1:.1:5;" mean URGENT

From: Sadik

Date: 21 Feb, 2010 13:13:02

Message: 2 of 4

Hi Saga,

It means

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

Best.


"Saga " <a5stargamescompany@googlemail.com> wrote in message <hlrb7m$97g$1@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

Subject: what does x2 = "1:.1:5;" mean URGENT

From: Wayne King

Date: 21 Feb, 2010 13:15:07

Message: 3 of 4

"Saga " <a5stargamescompany@googlemail.com> wrote in message <hlrb7m$97g$1@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

Subject: what does x2 = "1:.1:5;" mean URGENT

From: Saga

Date: 21 Feb, 2010 13:18:02

Message: 4 of 4

"Sadik " <sadik.hava@gmail.com> wrote in message <hlrbgu$pjq$1@fred.mathworks.com>...
> Hi Saga,
>
> It means
>
> x2 = [1 1.1 1.2 1.3 ... 4.8 4.9 5];
>
> Best.
>
>
> "Saga " <a5stargamescompany@googlemail.com> wrote in message <hlrb7m$97g$1@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

Tags for this Thread

No tags are associated with this thread.

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us