1
function cola=blockplot(p,F,c,cola)
1
function cola=blockplot(p,arg0,arg1,cola)
3
3
%@deftypefn {Function} blockplot
5
5
%BLOCKPLOT Plot block coefficients
6
% Usage: blockplot(p,F,c);
6
% Usage: blockplot(p,c);
8
% blockplot(p,F,c,cola);
9
11
% p : JAVA object of the class net.sourceforge.ltfat.SpectFrame.
17
19
% BLOCKPLOT(p,F,c) appends the block coefficients c to the running
18
20
% coefficient plot in p. The coefficients must have been obtained by
19
21
% c=blockana(F,...). The format of c is changed to a rectangular
20
% layout according to the type of F.
22
% BLOCKPLOT(p,[],c) does the same, but expects c to be already
23
% formatted matrix of real numbers. The matrix dimensions are not
24
% restricted, but it will be shrinked or expanded to a vertical
25
% strip in the sliding image.
22
% layout according to the type of F. p must be a Java object with a
27
25
% cola=BLOCKPLOT(p,F,c,cola) does the same, but adds cola to the
28
26
% first respective coefficients in c and returns last coefficients from
29
27
% c. This is only relevant for the sliced window blocking approach.
29
% BLOCKPLOT(p,c) or BLOCKPLOT(p,[],c) does the same, but expects c
30
% to be already formatted matrix of real numbers. The data dimensions
31
% are not restricted, but it will be shrinked or expanded to fit with
32
%@strong{Url}: @url{http://ltfat.sourceforge.net/doc/blockproc/blockplot.php}
35
%@strong{Url}: @url{http://ltfat.github.io/doc/blockproc/blockplot.html}
35
% Copyright (C) 2005-2014 Peter L. Soendergaard <soender@users.sourceforge.net>.
36
% This file is part of LTFAT version 2.0.1
38
% Copyright (C) 2005-2015 Peter L. Soendergaard <peter@sonderport.dk>.
39
% This file is part of LTFAT version 2.1.0
38
41
% This program is free software: you can redistribute it and/or modify
39
42
% it under the terms of the GNU General Public License as published by
48
51
% You should have received a copy of the GNU General Public License
49
52
% along with this program. If not, see <http://www.gnu.org/licenses/>.
51
complainif_notenoughargs(nargin,3,'BLOCKPLOT');
52
complainif_notvalidframeobj(F,'BLOCKPLOT');
54
complainif_notenoughargs(nargin,2,'BLOCKPLOT');
56
if ~isempty(arg0) && isstruct(arg0) && isfield(arg0,'frana')
59
complainif_notenoughargs(nargin,3,'BLOCKPLOT');
60
complainif_notvalidframeobj(F,'BLOCKPLOT');
57
62
error('%s: Only one channel input is supported.',upper(mfilename));
90
error('%s: Not enough input arguments',upper(mfilename));
81
93
error('%s: Complex values are not supported',upper(mfilename));
88
99
% The JAVA 2D-array handling is row-major
89
100
ctf = cast(ctf,'double').';