Files
matlab/brew/eval_vecfit.m
T
2023-06-11 06:45:16 +02:00

43 lines
1.0 KiB
Objective-C

## 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 <https://www.gnu.org/licenses/>.
## -*- texinfo -*-
## @deftypefn {} {@var{retval} =} eval_vecfit (@var{input1}, @var{input2})
##
## @seealso{}
## @end deftypefn
## Author: Jens <jens@orion>
## Created: 2023-06-10
function eval_vecfit ()
P0 = [-1 -1];
P1 = [2 4];
P2 = [4 2];
Pp = [P0; P1; P2];
T = [15 12];
A = [0 0];
Dn = 1;
Pa = [0 0 0]';
for i=1:50,
[A1, Pa, Dn] = vecfit(Pp,T,A,Pa,0.1.*(1-exp(-Dn)))
end
endfunction