MATLAB Answers

0

How to formulate the random matrix between real interval?

Asked by Daniel Mbadjoun on 7 Jun 2019
Latest activity Commented on by Daniel Mbadjoun on 7 Jun 2019
I try this formulation r = randi([0.10 0.50],5,5) but Matlab refuse this. Please help me with good formulation

  0 Comments

Sign in to comment.

1 Answer

Answer by James Tursa
on 7 Jun 2019
 Accepted Answer

See the second example in the rand doc here, and use your endpoints of 0.10 and 0.50 instead of the example endpoints of -5 and 5.

  1 Comment

Sign in to comment.