Problem 55265. Parametric Array
Create a row vector, 1xN (Integer, >1), such that
the mean of the vector is M (Real number) and the standard deviation of the vector is S (Real number)
%example
N=2;
M=0;
S=sqrt(8);
y=[2 -2]
%or
y=[-2 2]
There is no unique answer, and the answer will be checked against the mentioned conditions.
The expected precision of Mean and STD is 6 digits after decimal.
Solution Stats
Problem Comments
Solution Comments
Show commentsProblem Recent Solvers6
Suggested Problems
-
Find the two most distant points
2898 Solvers
-
Replace NaNs with the number that appears to its left in the row.
3025 Solvers
-
Is my wife right? Now with even more wrong husband
1328 Solvers
-
Solve the set of simultaneous linear equations
439 Solvers
-
Find the definite integral of various linear functions
56 Solvers
More from this Author31
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!