Your Perfect Assignment is Just a Click Away

We Write Custom Academic Papers

100% Original, Plagiarism Free, Customized to your instructions!

glass
pen
clip
papers
heaphones

MathLab Project

MathLab Project

1.Create a new function three_d_walk(num_steps) that performs a 3-dimensional random walk of length num_steps, by starting at the origin (x, y, z) = (0, 0, 0) and rolling a fair 6- sided die to determine the direction of each step (up, down, left, right, front, back). The function should return the column vectors [x, y, z] which record the coordinates of each step of the walk.

Hint: use the two_d_walk_UDLR(num_steps) function as a template.

2. Create a new script visualize_3_d_walk that calls your function in 1. and uses the plot3() and scatter3() functions to visualize the results of a 3-dimensional walk of 10, 000 steps.
Hint: use the visualize_walks script as a template.

3. Write a script average_distance_plot that uses the distance_of_walkers() function to perform 10, 000 UDLR and angle walks of length num_steps for each value of num_steps in the list 10:10:1000, and returns the average distance from the origin in column vectors averages_UDLR and averages_angle.

Your script should also plot the resulting averages against the vector 10:10:1000 on the same axis. Use a red solid line with square markers for the UDLR averages, and a blue solid line with circle markers for the angle average. Include a legend, label your axes appropriately, and include a descriptive title.

4. Using the graph in 3., hypothesize about the functional relationship between the number of steps in a walk and the average distance of the walker from the starting point. Does the relationship seem to depend on which type of walk (UDLR or angle) is performed?

Order Solution Now

Our Service Charter

1. Professional & Expert Writers: School Assignment only hires the best. Our writers are specially selected and recruited, after which they undergo further training to perfect their skills for specialization purposes. Moreover, our writers are holders of masters and Ph.D. degrees. They have impressive academic records, besides being native English speakers.

2. Top Quality Papers: Our customers are always guaranteed papers that exceed their expectations. All our writers have +5 years of experience. This implies that all papers are written by individuals who are experts in their fields. In addition, the quality team reviews all the papers before sending them to the customers.

3. Plagiarism-Free Papers: All papers provided by School Assignment are written from scratch. Appropriate referencing and citation of key information are followed. Plagiarism checkers are used by the Quality assurance team and our editors just to double-check that there are no instances of plagiarism.

4. Timely Delivery: Time wasted is equivalent to a failed dedication and commitment. School Assignment is known for timely delivery of any pending customer orders. Customers are well informed of the progress of their papers to ensure they keep track of what the writer is providing before the final draft is sent for grading.

5. Affordable Prices: Our prices are fairly structured to fit all groups. Any customer willing to place their assignments with us can do so at very affordable prices. In addition, our customers enjoy regular discounts and bonuses.

6. 24/7 Customer Support: At School Assignment, we have put in place a team of experts who answer all customer inquiries promptly. The best part is the ever-availability of the team. Customers can make inquiries anytime.