StdMArray

Creates an array with the given standard deviation and mean.

You are now following this Submission

The function accepts the standard deviation, mean, and the number of values in the vector.
The function can be used in statistical testing (e.g. T-test) if only the standard deviation and mean are given.

Sample:

>> x=StdMArray(5,10,28)
x =
Columns 1 through 13
5.0000 5.0000 5.0000 5.0000 5.0000 5.0000 5.0000 5.0000 5.0000 5.0000 5.0000 5.0000 5.0000
Columns 14 through 26
5.0000 5.0000 5.0000 5.0000 5.0000 5.0000 5.0000 5.0000 5.0000 5.0000 5.0000 5.0000 5.0000
Columns 27 through 28
-31.7423 41.7423
>> mean(x)
ans =
5
>> std(x)
ans =
10

Cite As

Adrian Once (2026). StdMArray (https://se.mathworks.com/matlabcentral/fileexchange/72434-stdmarray), MATLAB Central File Exchange. Retrieved .

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.0.1

Added comments
Changed output(Removed std and mean)

1.0.0