Simulating FDE's in Matlab

2 次查看(过去 30 天)
KayLynn
KayLynn 2014-2-3
I am trying to simulate the following two finite differential equations in Matlab: N_t+1=N_t+rNt and N_t+N_t[r-)r/K)N_t].
I am given a data setting containing n and t: t=0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 n=105 118 139 164 189 214 240 265 290 316 330 348 363 369 373
t=0:1:14; n=[105, 118, 139, 164, 189, 214, 240, 265, 290, 316, 330, 348, 363, 369, 373]; N2= n+r*n; Y=(r-r/ k*n); figure; plot(t, n, 'o-'); xlabel('time'); ylabel('number of cells'); title(' Time Versus Cell Growth') coefficients=polyfit(t,n,2); tfit=0:1:14; yfit = polyval(coefficients,tfit); hold on plot(tfit,yfit,'r','LineWidth',2) legend('Original data','Polynomial Fit', 2)
for i=1 c(i)=(n(i+1)-n(i))/n(i) end r=
I am not sure where to do next if this is even on the correct path. Thanks

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 MATLAB 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by