Linear combination of elementary Gaussian atoms
[SIG,LOCATOMS] = atoms(N, COORD, DISPLAY)
number of points of the signal
a real matrix with four columns: the time-frequency centers, the ith row has the form [ti,fi,Ti,Ai].
(ti,fi) are the time-frequency coordinates of atom i.
Ti is its time duration and Ai its amplitude.
Frequencies f1..fM should be normalized (between 0 and 0.5).
If nargin==1, the location of the atoms will be defined by clicking with the mouse, with the help of a menu. The default value for Ti is N/4.
a column complex vector of length N: the output signal.
a real matrix with four columns: matrix of time-frequency coordinates and durations of the atoms (see COORD).
atoms generates a signal consisting in a linear combination of elementary gaussian wave packets. The locations of the time-frequency centers of the different atoms are either fixed by the input parameter COORD or successively defined by clicking with the mouse (if NARGIN==1).
clf coord=[32, 0.3, 32, 1 ; 56, 0.15, 48, 1.22; 102,0.41, 20, 0.7 ]; sig = atoms(128,coord,1); | ![]() | ![]() |