Note: This page has been translated by MathWorks. Please click here

To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

Cross-spectrogram using short-time Fourier transforms

`s = xspectrogram(x,y)`

`s = xspectrogram(x,y,window)`

`s = xspectrogram(x,y,window,noverlap)`

`s = xspectrogram(x,y,window,noverlap,nfft)`

```
[s,w,t]
= xspectrogram(___)
```

```
[s,f,t]
= xspectrogram(___,fs)
```

```
[s,w,t]
= xspectrogram(x,y,window,noverlap,w)
```

```
[s,f,t]
= xspectrogram(x,y,window,noverlap,f,fs)
```

`[___,c] = xspectrogram(___)`

`[___] = xspectrogram(___,freqrange)`

`[___] = xspectrogram(___,spectrumtype)`

`[___] = xspectrogram(___,'MinThreshold',thresh)`

`xspectrogram(___)`

`xspectrogram(___,freqloc)`

`[___] = xspectrogram(___,`

returns
the cross-spectrogram over the frequency range specified by `freqrange`

)`freqrange`

.
Valid options for `freqrange`

are `'onesided'`

, `'twosided'`

,
and `'centered'`

.

`[___] = xspectrogram(___,`

returns
short-term cross power spectral density estimates if `spectrumtype`

)`spectrumtype`

is
specified as `'psd'`

and returns short-term cross
power spectrum estimates if `spectrumtype`

is specified
as `'power'`

.

`xspectrogram(___)`

with no output
arguments plots the cross-spectrogram in the current figure window.

`xspectrogram(___,`

specifies
the axis on which to plot the frequency. Specify `freqloc`

)`freqloc`

as
either `'xaxis'`

or `'yaxis'`

.

[1] Oppenheim, Alan V., Ronald W. Schafer, and John R. Buck. *Discrete-Time
Signal Processing*. 2nd Ed. Upper Saddle River, NJ: Prentice
Hall, 1999.

[2] Mitra, Sanjit K. *Digital Signal Processing:
A Computer-Based Approach*. 2nd Ed. New York: McGraw-Hill,
2001.

`cpsd`

| `mscohere`

| `spectrogram`

Was this topic helpful?