gtkIOStream  1.7.0
GTK+ << C++ IOStream operators for GTK+. Now with ORBing, numerical computation, audio client and more ...
findSubSpaceCorrMatrix.m
Go to the documentation of this file.
1 %/* Copyright 2000-2018 Matt Flax <flatmax@flatmax.org>
2 % This file is part of GTK+ IOStream class set
3 %
4 % GTK+ IOStream is free software; you can redistribute it and/or modify
5 % it under the terms of the GNU General Public License as published by
6 % the Free Software Foundation; either version 2 of the License, or
7 % (at your option) any later version.
8 %
9 % GTK+ IOStream is distributed in the hope that it will be useful,
10 % but WITHOUT ANY WARRANTY; without even the implied warranty of
11 % MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 % GNU General Public License for more details.
13 %
14 % You have received a copy of the GNU General Public License
15 % along with GTK+ IOStream
16 %*/
17 
18 function signal=findSubSpaceCorrMatrix(signal, f, mask)
19 % Find the covariance correlation matrix.
20 
21 %load /tmp/signal.mat
22 %signal=s;
23 signal=signal(:); % ensure a column vector
24 %clear s
25 p=round(.25*length(signal)); % Estimate for a large number of sinusoids
26 % this is a correlation matrix
27 signal=signal(fliplr(repmat(1:2*p,length(signal)-2*p+1,1))+repmat((1:length(signal)-2*p+1)',1,2*p)-1)/sqrt(length(signal)-(2*p-1));
28 end
ensure a column vector clear s p
function signal
double precision function round(x)
Definition: round.f:2
gtkIOStream: /tmp/gtkiostream/mFiles/findSubSpaceCorrMatrix.m Source File
GTK+ IOStream  Beta