Path: news.mathworks.com!newsfeed-00.mathworks.com!news.tele.dk!feed118.news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed.xs4all.nl!newsfeed4.news.xs4all.nl!xs4all!news.stack.nl!aioe.org!.POSTED!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Matrix variable with parametric elements
Date: Wed, 26 Dec 2012 06:26:03 -0600
Organization: Aioe.org NNTP Server
Lines: 21
Message-ID: <kbeqd7$r15$1@speranza.aioe.org>
References: <kbeobb$kf2$1@newscl01ah.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: 2CibzTqnux2ggoH9QofcGw.user.speranza.aioe.org
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Complaints-To: abuse@aioe.org
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/17.0 Thunderbird/17.0
X-Notice: Filtered by postfilter v. 0.8.2
Xref: news.mathworks.com comp.soft-sys.matlab:785409

On 12/26/2012 5:51 AM, Michael Doukas wrote:
> Hello everybody,
>
> I am fairly new to Matlab so please, if you can, reply as plain as possible.
>
> I want to create a 40X9 matrix and store it as a variable, but the matrix elements must be "parametric", meaning that i want the elements of the:
> first column to take random integer values in the range 0:2 (i.e. integers 0 or 1 or 2),
> second column to take random integer values in the range 3:6 (i.e. 3 or 4 or 5 or 6),
> ...
> ninth column to take random integer values within the range 56:67 (i.e. 56 or 57...67)
>
> Please let me know in case you want me to further explain my problem.
>
> Thanks,
> Mike
>

How did you get that columns 9 will have 56:67? I think it should be 52:62