function [outcome]=customerx=rand() ;if x <= 0.2 outcome = 1 ;else outcome = 0;end
MATLAB: What does this code represents? and why rand() has no value between parentheses
code explanationMATLAB
Related Question
- Pseudo-random number generator rand() in .mex
- Find a command that will generate a pseudo-random number(random number) that lies bwtween -1 and 1 drawn from uniform distribution
- Creating vectors by rand() and looping it
- Generate Random Sample between [0,1)
- How to use regexp to break a string based on the first set of parentheses
Best Answer