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
回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Instrument Control Toolbox 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!