Finding Max value on peak point of graph (logistics growth model)

2 views (last 30 days)
Is there a method in matlab where i can find the value of the point in the graph (red arrow) before it plateues. I was thinking of using the gradient function. But unable to get any. Some help please !
Nirmal Kishore Janakiraman
Edited: Nirmal Kishore Janakiraman on 30 Mar 2021
Thank you sir. I have attached below and what is it that im trying to find.

Sign in to comment.

Accepted Answer

Ananya Tewari
Ananya Tewari on 30 Mar 2021
I understand you want the coordinates of the point after which the graph plateaus. Assuming you are having the data points of the graph, using movmax we can get the desired result.
maxi = movmax(data,[0 2]); % Taking 3 values at a time and finding maximum of them
idx = 0; % this will capture the index after which the graph plateaus
for k = 1:n % where n is number of data points
% when the middle value of the 3 elements is the largest we break the loop
if(maxi(k) == data(k+1))
idx = k;
Nirmal Kishore Janakiraman
Dear Ananya,
Thank you very much for your assistance on this. Appreciate it a lot!

Sign in to comment.

More Answers (0)


Find more on Graph and Network Algorithms in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!