Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

[b6ad1a]: blockproc / blockplot.m Maximize Restore History

Download this file

blockplot.m    27 lines (20 with data), 628 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
function blockplot(p,F,c)
%BLOCKPLOT Plot block coefficients
% Usage: blockplot(p,F,c);
%
% Input parameters:
% p : JAVA object of the class net.sourceforge.ltfat.SpectFrame.
% F : Frame object.
% c : Block coefficients.
%
% `blockplot(p,F,c)` appends the block coefficients `c` to the running
% coefficient plot in `p`.
if size(c,2)>1
error('%s: Only one channel input is supported.',upper(mfilename));
end
ctf = framecoef2tf(F,c(:,1));
if strcmp(F.blokalg,'sliced')
% DO the coefficient overlapping or cropping
end
ctf = cast(ctf,'single');
javaMethod('append',p,ctf);