random walk in matlab without the econometrics toolbox
1 回表示 (過去 30 日間)
古いコメントを表示
Hi,
I am looking for a way to create a random walk in matlab without having the financial toolbox
0 件のコメント
採用された回答
Shashank Prasanna
2013 年 5 月 2 日
6 件のコメント
Cedric
2013 年 5 月 2 日
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
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Random Number Generation についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!