random walk in matlab without the econometrics toolbox

1 回表示 (過去 30 日間)
Locks
Locks 2013 年 5 月 2 日
Hi,
I am looking for a way to create a random walk in matlab without having the financial toolbox

採用された回答

Shashank Prasanna
Shashank Prasanna 2013 年 5 月 2 日
  6 件のコメント
Cedric
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
Locks
Locks 2013 年 5 月 2 日
I will try that, thank you very much for the support

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeTime Series についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by