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에서 Time Series에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!