主要内容

Using Signal Analyzer App

应用程序工作流程

用于检查和比较信号的典型工作流程信号分析仪应用是:

  1. 选择用于分析的信号- 选择MATLAB中可用的任何信号®工作区。该应用接受具有固有时间信息的数字阵列和信号,例如MATLABtimetable数组,timeseries对象和labeledSignalSetobjects. SeeData Types Supported by Signal Analyzerfor more information.

  2. 预处理信号— Lowpass, highpass, bandpass, or bandstop filter signals. Remove trends and compute signal envelopes. Smooth signals using moving averages, regression, Savitzky-Golay filters, or other methods. Change sample rates of signals or interpolate nonuniformly sampled signals onto uniform grids. Preprocess signals using your own custom functions. Generate MATLAB functions to automate preprocessing operations.

  3. Explore Signals— Add time information to signals using sample rates, numeric vectors,duration数组,or MATLAB expressions. Plot, measure, and compare data, their spectra, their spectrograms, or their scalograms. Look for features and patterns in the time domain, in the frequency domain, and in the time-frequency domain. Compute persistence spectra to analyze sporadic signals and sharpen spectrogram estimates using reassignment. Extract regions of interest from signals.

  4. Share Analysis- 作为图像从应用程序到剪贴板的复制显示。将信号导出到MATLAB工作区或将其保存到垫子文件中。生成MATLAB脚本以自动化功率谱,频谱图或持久性频谱估计的计算以及目标区域的提取。节省信号分析仪会议以后或在另一台计算机上恢复分析。

示例:从鲸鱼歌曲中提取感兴趣的区域

Load a file that contains audio data from a Pacific blue whale, sampled at 4 kHz. The file is from the library of animal vocalizations maintained by the Cornell University Bioacoustics Research Program. The time scale in the data is compressed by a factor of 10 to raise the pitch and make the calls more audible. Convert the signal to a MATLAB® timetable.

whalefile = fullfile(matlabroot,'例子','matlab','数据','bluewhale.au'); [w,fs] = audioread(whaleFile); whale = timetable(seconds((0:length(w)-1)'/fs),w);百分比听到,键入Soundsc(w,fs)

Open信号分析仪and drag the timetable to a display. Four features stand out from the noise. The first is known as atrill, and the other three are known asmo吟.

Displaytab, click光谱to open a spectrum view and clickPannerto activate the panner. Use the panner to create a zoom window with a width of about 2 seconds. Drag the zoom window so that it is centered on the trill. The spectrum shows a noticeable peak at around 900 Hz.

Isolate the single trill by highpass filtering. Right-click the signal in the Signal table and select复制创建鲸鱼歌的副本。通过清除信号表中名称旁边的复选框,从显示屏上删除原始信号。在肛交yzertab, clickPreprocessing▼并选择高通. Set the passband frequency to 925 Hz and the stopband attenuation at 80 dB. Use the default value for the steepness.

清除显示并选择原始信号。提取三个mo吟以比较它们的光谱:

  1. 将泛灯窗口放在第一个mo吟中。该频谱具有八个明确定义的峰,非常接近170 Hz的倍数。点击提取信号▼并选择Between Time Limits.

  2. 点击Pannerto hide the panner. Press the space bar to see the full signal. ClickZoom in Xand zoom in on a 2-second interval of the time view centered on the second moan. The spectrum again has peaks at multiples of 170 Hz. Click提取信号▼并选择Between Time Limits.

  3. Press the space bar to see the full signal. ClickData Cursors▼并选择Two. Place the time domain cursors in a 2-second interval around the third moan. Again, there are peaks at multiples of 170 Hz. Click提取信号▼并选择时间光标之间.

绘制高通过滤信号,并将两个数据光标放在1秒和3.5秒钟。提取包含颤音的区域。

通过清除信号表中名称旁边的复选框,从显示屏上删除原始信号。Display the three regions of interest you just extracted. Their spectra lie approximately on top of each other.

在same display, plot the region of interest containing the trill that you extracted. The trill and moan spectra are noticeably different.

点击on出口肛交yzer标签以导出垫子中的四个感兴趣区域。

See Also

|

相关话题