random walk in matlab without the econometrics toolbox
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Hi,
I am looking for a way to create a random walk in matlab without having the financial toolbox
0 Kommentare
Akzeptierte Antwort
Shashank Prasanna
am 2 Mai 2013
6 Kommentare
Cedric
am 2 Mai 2013
n = 200 ; m = 20 ;
figure ; hold on ;
for k = 1 : m
plot(cumsum((rand(1, n) > 0.5) - 0.5), 'Color', rand(1, 3)) ;
end
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Random Number Generation 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!