help in plotting replicator equation

I=5
input_x={0,0.2,0.4,0.6,0.8,1.0}
function pi_all=pi_req(I,input_x)
pi_all=zeros(I+1,1);
for i=1:I+1
pi_all(i)=(1-(i-1)/I)*(0.45+2*0.55*(input_x(i)/2 + sum(input_x(1:i-1))));
end
then i have to generate average
pi_all=for i=1 to 6 ∑(input_x(i) * pi_all(i))
and
plot d(input_x(i))/dt= input_x * (pi_all(i)-average pi_all)
can someone help me

Answers (0)

Categories

Find more on Instrument Control Toolbox in Help Center and File Exchange

Asked:

on 29 Dec 2017

Edited:

on 29 Dec 2017

Community Treasure Hunt

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

Start Hunting!