Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.


Math Forum » Discussions » Software » comp.soft-sys.matlab

Topic: Matrix variable with parametric elements
Replies: 10   Last Post: Dec 26, 2012 5:38 PM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Nasser Abbasi

Posts: 5,686
Registered: 2/7/05
Re: Matrix variable with parametric elements
Posted: Dec 26, 2012 7:26 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

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






Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.