Question

I need to solve the following differential equation in Matlab. dr/dt*pi(3r - r^2) = -0.5*sqrt(17r) How...

I need to solve the following differential equation in Matlab.

dr/dt*pi(3r - r^2) = -0.5*sqrt(17r)

How would I write the code for this? Please keep it as simple as possible as I'm new to Matlab.

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

clc
clear all
close all
format long
f=@(t,r) -0.5*sqrt(17*r)/(pi*(3*r-r^2));
[T,R]=ode45(f,[0,1],1)
plot(T,R);
title('Plot of r(t)');

Add a comment
Know the answer?
Add Answer to:
I need to solve the following differential equation in Matlab. dr/dt*pi(3r - r^2) = -0.5*sqrt(17r) How...
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