function J = sumsq_wtfish(p,tdata,wdata)
% Function computing sum of square errors for von Bertalanffy model
model = p(1)*(1 - exp(-p(2)*tdata)).^3;
error = model - wdata;
J = error*error';
end

