random add or subtract a number to an array
3 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Manikatam Gaddam
am 1 Apr. 2019
Kommentiert: Manikatam Gaddam
am 2 Apr. 2019
Hello All,
I am trying to randomly add or subtract a constant number to all array elments.
For suppose
a= [1 2 3 4]
b = a + either (0.5 only or -0.5 only)
Is there such possiblity in matlab?
0 Kommentare
Akzeptierte Antwort
Weitere Antworten (0)
Siehe auch
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!