你好,这个只需要给出消费者总量N和比例常数k,以及初始的已售出量x0就能画出来,比如
N = 1000; x0 = 200; C = N/x0-1; k = 0.001; t = linspace(0,10,101); x = N./(1+C*exp(-N*k*t)); plot(t,x)