Skip to content

Commit 287c848

Browse files
Fiete Winterhagenw
Fiete Winter
authored andcommitted
add some empty lines and adjust discription
1 parent c5f0af8 commit 287c848

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

SFS_general/signal_from_spectrum.m

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,7 @@
110110
% Build the inverse fft and assume spectrum is conjugate symmetric
111111
outsig = real(ifft(compspec));
112112

113+
113114
%% ===== Output ==========================================================
114115
% undo reshape and permute
115116
outsig = reshape(outsig, [samples, s(2:end)]);

SFS_general/spectrum_from_signal.m

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
% Usage: [amplitude,phase,f] = spectrum_from_signal(sig,[dim],conf)
55
%
66
% Input parameters:
7-
% signal - one channel audio (time) signal
7+
% signal - multi channel audio (time) signal
88
% dim - dimension along which the fft is performed
99
% conf - configuration struct (see SFS_config)
1010
%
@@ -105,6 +105,7 @@
105105
amplitude = [amplitude(1,:); 2*amplitude(2:end-1,:); amplitude(end,:)] / bins;
106106
end
107107

108+
108109
%% ===== Plotting ========================================================
109110
if nargout==0 || useplot
110111
figure; title('Spectrum');
@@ -116,6 +117,7 @@
116117
grid on; xlabel('frequency / Hz'); ylabel('phase / rad')
117118
end
118119

120+
119121
%% ===== Output ==========================================================
120122
% Return values
121123
if nargout>0

0 commit comments

Comments
 (0)