Question

MATLAB: Consider a very simple example in which the frictional force depends on the velocity. Assume...

MATLAB: Consider a very simple example in which the frictional force depends on the velocity. Assume that the velocity of an object obeys an equation of the form
dv /dt= a − bv,
where a and b are constants. Use the Euler method to solve the above differential equation for v as a function of time and plot the results. What is the terminal velocity for the selected parameters. (A convenient choice of parameters is a = 10 and b = 1.)

0 0
Add a comment Improve this question Transcribed image text
Answer #1

`Hey,

Note: Brother in case of any queries, just comment in box I would be very happy to assist all your queries

clear
clc
a=10;
b=1;
f=@(t,v) a-b*v;
h=0.05;
t=0:h:10;
v=[0];
for i=2:length(t)
v(i)=v(i-1)+h*f(t(i-1),v(i-1));
end
plot(t,v);
fprintf('The terminal velocity is %f\n',v(length(v)));

Kindly revert for any queries

Thanks.

Add a comment
Know the answer?
Add Answer to:
MATLAB: Consider a very simple example in which the frictional force depends on the velocity. Assume...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • please explain the answer 1) Up until now we have always ignored air resistance. We should...

    please explain the answer 1) Up until now we have always ignored air resistance. We should now add it. Let us just think of simple 1-dimensional problem, dropping a ball of mass m from a height H but 2 with air resistance. We can model the air resistance as a force proportional to the velocity, fair = bv. The coefficient bis a constant. (For this problem you can use calculus textbooks or wolfram alpha to do the calculus.) What are...

  • please explain the answer. 1) Up until now we have always ignored air resistance. We should...

    please explain the answer. 1) Up until now we have always ignored air resistance. We should now add it. Let us just think of simple 1-dimensional problem, dropping a ball of mass m from a height H but 2 with air resistance. We can model the air resistance as a force proportional to the velocity, fair = bv. The coefficient bis a constant. (For this problem you can use calculus textbooks or wolfram alpha to do the calculus.) What are...

  • A Matlab introductory class Problem. The book for my class is "Introduction to MATLAB For Engineers,...

    A Matlab introductory class Problem. The book for my class is "Introduction to MATLAB For Engineers, Third edition by William J. Palm I have solved the top speed, the time to reach top speed, and the speed the plane takes off at. this is what I have. I need help on the graphing portion of the problem I will give you a Thumbs Up if you solve this part for me. Thank You. LOOPING THE PLANE EGME 205, Fall 2018...

  • write MATLAB scripts to solve differential equations. Computing 1: ELE1053 Project 3E:Solving Differential Equations Project Principle...

    write MATLAB scripts to solve differential equations. Computing 1: ELE1053 Project 3E:Solving Differential Equations Project Principle Objective: Write MATLAB scripts to solve differential equations. Implementation: MatLab is an ideal environment for solving differential equations. Differential equations are a vital tool used by engineers to model, study and make predictions about the behavior of complex systems. It not only allows you to solve complex equations and systems of equations it also allows you to easily present the solutions in graphical form....

  • the question is in last picture. i provided the lab content... I need guidance. thank you....

    the question is in last picture. i provided the lab content... I need guidance. thank you. INVESTIGATION 10 ROTATIONAL MOTION OBJECTIVE To determine the moment of inertia I of a heavy composite disk by plotting measured values of torque versus angular acceleration. THEORY Newton's second law states that for translational motion (motion in a straight line) an unbalanced force on an object results in an acceleration which is proportional to the mass of the object. This means that the heavier...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT