Question: use matlab Write a script that generates the following 30 random walk ( 1000 steps): - each step-size along x is 1,0, or 1 .

Write a script that generates the following 30 random walk ( 1000 steps): - each step-size along x is 1,0, or 1 . - each step-size along y is 1 or 1. - each step-size along z is 2 or 2 . The vector that stores the x-position should be called x; the vector that stores the y-position should be called y; the vector that stores the z-potition should te called z. The marker starts its motion at x(1)=0,y(1)=0, and z(1)=0. Use the provided script that generates a 2D random walk. Edit the script to 1. Show the marker positions at each step using diamonds. 2. Conenct the diamonds using solid lines. 3. Set line width as 2. 4. Show only the region with x5 and y5. You can and should edit line 9 in the provided template. However, please keep the syntax 9=plot(...)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
