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 CenterFile Exchange에서 Time Series에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by