view aim-mat/tools/@field/fill.m @ 0:74dedb26614d

Initial checkin of AIM-MAT version 1.5 (6.4.2011).
author tomwalters
date Fri, 20 May 2011 12:32:31 +0100
parents
children
line wrap: on
line source
function f=fill(f,x1,x2,wert)
% Fill the part of the matrix from x1 to x2 with that value
% The size of the matrix might be increased

nrfre=getnrfrequencies(f);
for x=x1:x2  
    nullen=ones(1,nrfre)*wert;
    sig=signal(nullen);
    f=setcolumn(f,x,sig);
end