random walk in matlab without the econometrics toolbox
    4 views (last 30 days)
  
       Show older comments
    
Hi,
I am looking for a way to create a random walk in matlab without having the financial toolbox
0 Comments
Accepted Answer
  Shashank Prasanna
    
 on 2 May 2013
        6 Comments
  Cedric
      
      
 on 2 May 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
More Answers (0)
See Also
Categories
				Find more on Creating and Concatenating Matrices in Help Center and File Exchange
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

