Problem 2913. Matlab Basics II - Velocity of a particle

Solution 1134322

Submitted on 6 Mar 2017 by Tyler Johnson
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

Test Suite

Test Status Code Input and Output
1   Pass
x = 2.1; t = 4.2; v_correct = 23.849128073359125; assert(isequal(particle_vel(x,t),v_correct))

2   Pass
x = -5.3; t = 6.8; v_correct = -22.273808521444963; assert(isequal(particle_vel(x,t),v_correct))

Suggested Problems

More from this Author28

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!