uinit initializes a uniform signal given its amplitudes, sampling time and initial time.
u = uinit(ampl,ts) u = uinit(ampl,ts,t0)
||Amplitudes. Row or column vector.|
||Sampling time. Scalar.|
||Time of the first sample. Scalar. Optional.|
% Creation of a uniform signal f = 1; % signal frequency t = 10/f; % signal duration fs = 1000; % sampling frequency ts = 1/fs; % sampling time t0 = 1.; % initial time times = t0+(0:ts:t); % time samples a = 0.45; % signal amplitude ampl = a*sin(2*pi*f*times)+a*sin(4*2*pi*f*times)+0.9; % amplitudes u = uinit(ampl,ts,t0);include "V2.0.inc"; include "author.inc"; include "footer.inc"; ?>