Question
MATLAB

(2 points) Challenge. Create a SCRIPT file called thirdOrderDE.m 5) Blasius showed in 1908 that the solution to the incompres
0 1
Add a comment Improve this question Transcribed image text
Answer #1

Matlab Code:

clear;clc;
init = [0 0 0.332];%initial conditions
tspan = 0:0.01:1;

[t, y] = ode45(@thODE, tspan, init);%function call to solve

%plots
plot(t,y(:,1));
hold on;
plot(t,y(:,2));
hold on;
plot(t,y(:,3));
hold on;
legend('f','deriv(f)','doublederiv(f)');


%differential equations
function dydt = thODE(t,y)
dydt = zeros(3,1);
dydt(1) = y(2);
dydt(2) = y(3);
dydt(3) = (-1/2)*y(1)*y(3);
  
end

0.35 deriv(f) 0.3 doublederiv(f) 0.25 0.2 0.15 0.1 0.05 0 0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.91

Add a comment
Know the answer?
Add Answer to:
MATLAB (2 points) Challenge. Create a SCRIPT file called thirdOrderDE.m 5) Blasius showed in 1908 that the solution to the incompressible flow field in a laminar boundary layer on a flat plate is...
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
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