CRP Toolbox Reference

adjust

Purpose

Adjusts two two-column vectors.

Syntax

    [x, y]=adjust(a,b,flag)

Description

Adjusts the two-column vectors a and b to the same time scale (in first column), whereby using the flag, the following methods for adjustment can be choosen:

  0  (default) adjustment by cutting.
  1  - adjustment by cubic interpolating.
  -1  - adjustment by cubic interpolating and forced length (given by A).
  2  - gap filling by histogram estimation (experimental status).
  3  - gap filling by AR(p) estimation (experimental status).

Except for flag=0, x and y will have the same length.

Examples

    x=(1:110)';
    y1=x(11:end); y1(:,2)=sin(x(11:end)/10);
    y2=x(1:100)/2; y2(:,2)=sin(x(1:100)/5);
    [z1 z2]=adjust(y1,y2);
ace arfit