Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
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 16:13:09 +0000 (UTC)
Organization: Broadcast &#38; Research Apps
Lines: 12
Message-ID: <j8rq6l$rbu$1@newscl01ah.mathworks.com>
References: <j8roeg$lc8$1@newscl01ah.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: www-00-blr.mathworks.com
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: newscl01ah.mathworks.com 1320250389 28030 172.30.248.45 (2 Nov 2011 16:13:09 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Wed, 2 Nov 2011 16:13:09 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 113206
Xref: news.mathworks.com comp.soft-sys.matlab:747997

"Ulrik Nash" <uwn@sam.sdu.dk> wrote in message <j8roeg$lc8$1@newscl01ah.mathworks.com>...
> 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

kron(1:10,ones(1,5))

Huy Phan