Normally Spaced Vector (like linspace or normal space)

12 Ansichten (letzte 30 Tage)
unkown character
unkown character am 24 Sep. 2018
Bearbeitet: Jan am 24 Sep. 2018
I want to create something like linspace but where it would be sample a normally distributed curve.
For example, 15 points between -20 and 20 that are normally distributed. IS there anything like this

Akzeptierte Antwort

Jan
Jan am 24 Sep. 2018
Bearbeitet: Jan am 24 Sep. 2018
The question is not clear yet. But a bold guess:
x = rand(1, 15) * 40 - 20;
Maybe you want sort the values.
Or do you want 13 random point only, while -20 and 20 are included in every case?

Weitere Antworten (0)

Kategorien

Mehr zu Creating and Concatenating Matrices finden Sie in Help Center und File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by