some commands Flashcards

1
Q

rand(x,y)

A

creates a x, by y column vector with random numbers ranging from 0-1
e.g rand(100,3)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

randi(x,y,z)

A

creates a column y, by z vector with random numbers ranging from 0 to x
randi(10,20,4)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly