Vector question help?
2 views (last 30 days)
Karim on 9 Jul 2022
Edited: Karim on 9 Jul 2022
% this step creates a vector with 25 normal distributed random values
MyVector = randn( 1,25 )
% if you want to round these values to obtain integers you can do:
MyRoundVector = round( MyVector )
However, note that (as John indicated) after the rounding the vector no follows a normal distribution. This vector simply contains the rounded values.