Ashley P.

asked • 05/29/23

MATLAB Plot of Solutions and Directional Field

I'm trying to plot solutions along with the directional field as in the image given below, of the constant harvesting model given by

dP/dt = r*P(1 - (P/M)) - h , P(0) =p0 , where r = 0.8, M = 8000 and h = 0 in this particular case.


I attempted using the following code, which does not result in something as in the image 1. I would appreciate your help with making the graph looks like as in the image 1.


Image 1(Required graph): drive[DOT]google.com/file/d/1WPREaQrGLi_cGrXevtN5ajMq1QR4acGI/view?usp=sharing


Image 2(The result I got with my code): drive.google[DOT]com/file/d/1QkDFIsTO0UzZfRCpBhfZtiPnpqlWPxL0/view?usp=sharing


I'm using MATLAB online free version

Rory M.

It looks like your code ( following code ) section is missing.
Report

02/20/24

1 Expert Answer

By:

Joseph B. answered • 08/02/25

Tutor
New to Wyzant

B.S. Computer Engineering | Robotics Lead and Research Assistant

Still looking for help? Get the right answer, fast.

Ask a question for free

Get a free answer to a quick problem.
Most questions answered within 4 hours.

OR

Find an Online Tutor Now

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.