Path: news.mathworks.com!newsfeed-00.mathworks.com!solaris.cc.vt.edu!news.vt.edu!news.glorb.com!postnews.google.com!l12g2000vby.googlegroups.com!not-for-mail
From: Jomar Bueyes <jomarbueyes@hotmail.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Creating vector of numbers in range F:L with n numbers at each point
Date: Wed, 2 Nov 2011 09:17:31 -0700 (PDT)
Organization: http://groups.google.com
Lines: 22
Message-ID: <1967e9d5-513f-494b-a0d6-9a08afbf6e10@l12g2000vby.googlegroups.com>
References: <j8roeg$lc8$1@newscl01ah.mathworks.com>
NNTP-Posting-Host: 140.247.106.163
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
X-Trace: posting.google.com 1320250656 10361 127.0.0.1 (2 Nov 2011 16:17:36 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Wed, 2 Nov 2011 16:17:36 +0000 (UTC)
Complaints-To: groups-abuse@google.com
Injection-Info: l12g2000vby.googlegroups.com; posting-host=140.247.106.163; posting-account=UQjN4QoAAABmrUsSpLGrPgqLI4psJPvG
User-Agent: G2/1.0
X-Google-Web-Client: true
X-Google-Header-Order: HUALESNKRC
X-HTTP-UserAgent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US;
 rv:1.9.2.23) Gecko/20110920 Firefox/3.6.23,gzip(gfe)
Xref: news.mathworks.com comp.soft-sys.matlab:747999

On Nov 2, 11:43 am, "Ulrik Nash" <u...@sam.sdu.dk> wrote:
> Hi Everyone,
>
> Is there not an easy way to create a vector, with numbers from 1:10, say, with 5 1's, 5'2 ... 5 10's?
>
> Regards,
>
> Ulrik

Hi Ulrik,

Is there a particular ordering you want? If not, have you tried
repmat?

>> v = repmat((1:10), 1, 5);

HTH

Jomar