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:
vector

Subject: vector

From: sujata

Date: 16 Nov, 2010 09:48:07

Message: 1 of 2

If I have a date say 31-OCT-2010

and I would like to have this date into a vector of 30 by 1 with the same date in each row. Is there a way to do this without using a for loop?

Subject: vector

From: Aurelien Queffurust

Date: 16 Nov, 2010 10:04:03

Message: 2 of 2

"sujata" <sujatagp@gmail.com> wrote in message <ibtk0n$p9o$1@fred.mathworks.com>...
> If I have a date say 31-OCT-2010
>
> and I would like to have this date into a vector of 30 by 1 with the same date in each row. Is there a way to do this without using a for loop?

>>repmat('31-OCT-2010',30,1)

Aurélien
http://blog.developpez.com/matlab4geek/

Tags for 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