function [sm,cwp]=specgram(sec_step,sec_leng,wtype,x,y,wpar) //=pspect(sec_step,sec_leng,wtype,x,y,wpar) //Cross-spectral estimate between x and y if both are given //and auto-spectral estimate of x otherwise. //Spectral estimate obtained using the modified periodogram method // x :data if vector, amount of input data if scalar // y :data if vector, amount of input data if scalar // sec_step :offset of each data window // sec_leng :length of each data window // wtype :window type (re,tr,hm,hn,kr,ch) // wpar :optional window parameters // : for wtype='kr', wpar>0 // : for wtype='ch', 00 // sm :power spectral estimate in the interval [0,1] // cwp :unspecified Chebyshev window parameter //! //author: C. Bunks date: 14 Sept 1988 // Copyright INRIA [lhs,rhs]=argn(0); cross=0; if sec_step