summaryrefslogtreecommitdiff
path: root/macros/specgram.sci
diff options
context:
space:
mode:
authoravinashlalotra2025-04-26 20:09:12 +0530
committeravinashlalotra2025-04-26 20:09:12 +0530
commitea7dcdba3b83696b97cc431ee050b58f9a0f3507 (patch)
tree49ea8ba898b88535c261546f4e3accbdf4c83bdf /macros/specgram.sci
parent725d9ee2ddb254f57a896bb47e0e727759eb5901 (diff)
downloadFOSSEE-Signal-Processing-Toolbox-ea7dcdba3b83696b97cc431ee050b58f9a0f3507.tar.gz
FOSSEE-Signal-Processing-Toolbox-ea7dcdba3b83696b97cc431ee050b58f9a0f3507.tar.bz2
FOSSEE-Signal-Processing-Toolbox-ea7dcdba3b83696b97cc431ee050b58f9a0f3507.zip
formated source documentation pattern for generating docs
Diffstat (limited to 'macros/specgram.sci')
-rw-r--r--macros/specgram.sci5
1 files changed, 1 insertions, 4 deletions
diff --git a/macros/specgram.sci b/macros/specgram.sci
index e1ca6dc..b547548 100644
--- a/macros/specgram.sci
+++ b/macros/specgram.sci
@@ -13,16 +13,12 @@
function [S_r, f_r, t_r] = specgram(x, n , Fs , win , overlap)
//Generate a spectrogram for the signal x. The signal is chopped into overlapping segments of length n, and each segment is windowed and transformed into the frequency domain using the FFT. The default segment size is 256. If fs is given, it specifies the sampling rate of the input signal. The argument window specifies an alternate window to apply rather than the default of hanning (n). The argument overlap specifies the number of samples overlap between successive segments of the input signal. The default overlap is length (window)/2.
-
//CALLING SEQUENCE:
//[S, f, t] = specgram (x,n,fs,window,overlap)
//where
//S is the complex output of the FFT, one row per slice
//f is the frequency indices corresponding to the rows of S
// t is the time indices corresponding to the columns of S.
-
-
-
//Test cases:
//////1.
//N=1024;
@@ -33,6 +29,7 @@ function [S_r, f_r, t_r] = specgram(x, n , Fs , win , overlap)
//grayplot(f,t,s)
//xlabel("frequency")
//ylabel("time")
+
////
[nargout,nargin]=argn();
if nargin < 1 | nargin > 5