Vector question help?
조회 수: 2(최근 30일)
Karim 2022년 7월 9일
편집: Karim 2022년 7월 9일
% 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.