function J = sumsq_ecoli(p,tdata,pdata)
% Function computing sum of square errors for Malthusian model
model = p(1)*exp(p(2)*tdata);
error = model - pdata;
J = error*error';
end

%[p1,J,flag] = fminsearch(@sumsq_ecoli,[0.2,0.01],[],td,pd)