Question

Generate a 2 x 3 matrix of uniformly distributed random , real numbers, each in the range (0, 1] real numbers, each in the range (4, 10) integer numbers, each in the inclusive range from 1 to 10 integer numbers, each in the inclusive range from 5 to 20

it is matlab coding

0 0
Add a comment Improve this question Transcribed image text
Answer #1

Code.m

A = rand(2,3)
B = 4 + (10-4).*rand(2,3)
C = randi([5 20],2,3)
D = randi([5 20],2,3)

====================================================

octave: 6> Arand (2,3) 0.27340 0.40916 θ,66625 0.94935 0.58578 0.32828 octave:7> B4(10-4).*rand (2,3) 7.6475 1774 7.7612 9.00

Add a comment
Know the answer?
Add Answer to:
it is matlab coding Generate a 2 x 3 matrix of uniformly distributed random , real...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT