## Copyright (C) 2023 Jens ## ## This program is free software: you can redistribute it and/or modify ## it under the terms of the GNU General Public License as published by ## the Free Software Foundation, either version 3 of the License, or ## (at your option) any later version. ## ## This program is distributed in the hope that it will be useful, ## but WITHOUT ANY WARRANTY; without even the implied warranty of ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ## GNU General Public License for more details. ## ## You should have received a copy of the GNU General Public License ## along with this program. If not, see . ## -*- texinfo -*- ## @deftypefn {} {@var{retval} =} eval_vecfit (@var{input1}, @var{input2}) ## ## @seealso{} ## @end deftypefn ## Author: Jens ## Created: 2023-06-10 P0 = [1 1]; P1 = [2 4]; P2 = [4 2]; Pp = [P0; P1; P2]; T = [15 12]; A = [15 20]; Dn = 1; Pa = [0 0 0]'; for i=1:50, [A1, Pa, Dn] = vecfit(Pp,[],T,A,Pa,0.1.*(1-exp(-Dn))) end