MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi
Learn moreOpportunities for recent engineering grads.
Apply TodayMATLAB Central > MATLAB Newsreader > random walk & random number 

i've created a random wak and plotted it but what I’m stuck on is the last bit (the rg2) because if I run the file I get a value for rg2 and if I run it again I get different value. I want to find a way to get the different values of rg2 at once instead of trying to run it every time and with that I need to plot the values. I don’t know how to do this bit and I’m stuck so if anyone knows how to do please tell me. 
Subject: random walk & random number From: Roger Stafford Date: 6 Nov, 2013 18:08:18 Message: 2 of 6 
"nawal " <nawalyarey@gmail.com> wrote in message <l5dauc$5p$1@newscl01ah.mathworks.com>... 
"Roger Stafford" wrote in message <l5e0ii$d19$1@newscl01ah.mathworks.com>... 
"Roger Stafford" wrote in message <l5e0ii$d19$1@newscl01ah.mathworks.com>... 
Subject: random walk & random number From: Roger Stafford Date: 6 Nov, 2013 21:11:06 Message: 5 of 6 
"nawal " <nawalyarey@gmail.com> wrote in message <l5e9di$77$1@newscl01ah.mathworks.com>... 
"Roger Stafford" wrote in message <l5eb9a$s59$1@newscl01ah.mathworks.com>... 
No tags are associated with this thread.
A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.
Anyone can tag a thread. Tags are public and visible to everyone.