Recordings of whale songs contain trills and moans. Trills sound like series of clicks. Moans are low-frequency cries similar to the sound made by a ship's horn. You want to look at each signal and label it to identify the whale type, the trill regions, and the moan regions. For each trill region, you also want to label a few selected signal peaks.
Start by loading a data set that includes two recordings of whale songs. The signals are called whale1
and whale2
and are sampled at 4 kHz. whale1
consists of a trill followed by three moans. whale2
consists of two moans, a trill, and another moan.
load labelwhalesignals % To hear, type soundsc(whale1,Fs), pause(22), soundsc(whale2,Fs)
Bring the signals into Signal Labeler:
Open Signal Labeler. On the Labeler tab, click Import ? and select From workspace
in the Members list.
In the dialog box, select the signals. Add time information: Select Time
from the drop-down list and enter the sample rate, Fs
, which is measured in kHz. Click Import to import the signals and then click Close to close the dialog box. The signals appear in the Labeled Signal Set Browser. To plot any of the signals, you can select the check box next to its name in the browser.
Define labels to attach to the signals. For more information about the kinds of labels you can define, see Create or Import Signal Label Definitions.
For the whale song signals:
Define a categorical attribute label to store whale types. Call it WhaleType
. The possible categories are blue whale, humpback whale, and white whale.
Define a logical region-of-interest (ROI) label that is true for moan regions. Call it MoanRegions
.
Define a logical ROI label that is true for trill regions. Call it TrillRegions
.
Define a numeric point label to capture trill peaks. Call it TrillPeaks
. Set this label as a sublabel of the TrillRegions
label.
To define each label, click Add Definition ? on the Labeler tab. To define the sublabel, select the TrillRegions
label in the Label Definitions browser, click Add Definition ?, and select Add sublabel definition
.
Enter the following values in the fields in the dialog box that appears for each signal label or sublabel definition. Leave the Default field empty in each case.
LabelNameWhaleTypeMoanRegionsTrillRegionsTrillPeaksLabelTypeAttributeROIROIPointLabelDescriptionWhaletypeRegionswheremoansoccurRegionswheretrillsoccurTrillpeaksDataTypecategoricallogicallogicalnumericCategories?????bluehumpbackwhite−−−−−−−−−
You can export the signal definitions you created to a MAT-file or to the MATLAB® Workspace by clicking Export ?. A dialog box appears that prompts you for a file name. At any point you can import signal definitions stored in a MAT-file by clicking Import ?.
The songs in the data are from two blue whales. Set the WhaleType
values for both signals:
Select WhaleType
on the Label Definitions browser.
Click Label All.
In the dialog box that appears, verify that both whale1
and whale2
are selected and that the Value field is set to blue
. (If you do not specify a default value in a categorical signal label definition, Signal Labeler sets the label to the first category specified in the definition.)
Click OK.
Set the WhaleType
value for one signal at a time:
Check the box next to the signal name in the Labeled Signal Set Browser.
Select WhaleType
on the Label Definitions browser.
Click Label Attribute. The value for WhaleType
appears in the Labeled Signal Set Browser.
Select the value for WhaleType
from the Value drop-down list.
Plot the whale1
signal by selecting the check box next to its name. Signal attributes appear both in the Labeled Signal Set Browser and under the time plot.
Visualize the whale songs and label the trill and moan regions.
Trill regions have distinct bursts of sound punctuated by silence. whale1
has a trill centered at about 2 seconds.
Moan regions are sustained low-frequency wails. whale1
has moans centered at about 7 seconds, 12 seconds, and 17 seconds.
Label the signals one at a time:
On the Plot column of the Labeled Signal Set Browser, check the box next to the signal name to plot the signal.
To label a moan, on the Label Definitions browser, select the MoanRegions
label definition. Draw Labels is automatically activated.
Click the time plot. A thick animated dashed line appears that expands into a shaded region when you click and drag.
Move and resize the active region until it encloses a moan region. For better label placement, you can go to the Display tab and choose a zoom action or activate the panner.
Click the Accept check mark next to the Label button, press Enter, or double-click to label the ROI. The region changes to a gradient of the signal color. If you do not specify a default value in a logical label definition, Signal Labeler sets the label to true
.
Repeat the procedure for the other two moans.
To label a trill, on the Label Definitions browser, select the TrillRegions
label definition. Label the trill region using steps 3 and 4.
Before labeling the second signal, remove the first signal from the plot by clearing the check box next to its name in the Labeled Signal Set Browser. If you have the two signals plotted when you label a region or point, Signal Labeler associates the label with both signals.
Plot the two signals. The label viewer axes show the locations and widths of the regions of interest. They also show the value assigned to each region.
Trill regions have distinct peaks that correspond to bursts of sound. Label three peaks in each trill region. Because trill peaks are sublabels, each one must be associated with a particular TrillRegions
label.
Label the signals one at a time:
On the Plot column of the Labeled Signal Set Browser, check the box next to the signal name to plot the signal. Also check the box corresponding to the trill region whose peaks you want to label.
On the Label Definitions browser, select TrillPeaks
. Draw Labels is automatically selected.
On the toolstrip, under Value, enter 1
, corresponding to the first peak.
On the Labeled Signal Set Browser, select the trill region.
Click the point on the time plot. The trill region is framed by a solid line, and an animated dashed (active) line appears for the point being labeled.
Move the active line until it crosses the signal at a peak of your choice. For better label placement, you can go to the Display tab and choose a zoom action or activate the panner.
Click the check mark next to the Label button, press Enter, or double-click to label the peak. The dashed line changes to a solid line of the same color as the signal.
Repeat for two more peaks, entering 2
and 3
under Value to identify them.
Before labeling trill peaks for the second signal, remove the first signal from the plot by clearing the check box next to its name in the Labeled Signal Set Browser.
The label viewer axes show the locations of the points of interest and the value assigned to each point.
Plot the two signals to see a summary of their labels in the Label Viewer. Expand the labeled signal set hierarchy in the Labeled Signal Set Browser to see details for all the labels. (To expand the hierarchy, right-click any signal in the browser and select Expand All
.) For each signal, plot the first moan region and the third trill peak that you labeled.
At any point, you can edit any signal label using the Labeled Signal Set Browser, the time plot, or the label viewer. For more information, see Edit Labels.
Export the labeled signals as a new labeledSignalSet
object. Click the Export ? button on the Labeler tab of the toolstrip. You can export the labeled signal set to the MATLAB Workspace or to a MAT-file. For this example, choose a MAT-file. In the dialog box that appears, give the name Whale_Songs.mat
to the labeled signal set, add an optional short description, and click Export. See Export Labeled Signal Sets and Signal Label Definitions for more information on how Signal Labeler exports labeled signal sets.
Matlabsolutions.com provides guaranteed satisfaction with a
commitment to complete the work within time. Combined with our meticulous work ethics and extensive domain
experience, We are the ideal partner for all your homework/assignment needs. We pledge to provide 24*7 support
to dissolve all your academic doubts. We are composed of 300+ esteemed Matlab and other experts who have been
empanelled after extensive research and quality check.
Matlabsolutions.com provides undivided attention to each Matlab
assignment order with a methodical approach to solution. Our network span is not restricted to US, UK and Australia rather extends to countries like Singapore, Canada and UAE. Our Matlab assignment help services
include Image Processing Assignments, Electrical Engineering Assignments, Matlab homework help, Matlab Research Paper help, Matlab Simulink help. Get your work
done at the best price in industry.
Desktop Basics - MATLAB & Simulink
Array Indexing - MATLAB & Simulink
Workspace Variables - MATLAB & Simulink
Text and Characters - MATLAB & Simulink
Calling Functions - MATLAB & Simulink
2-D and 3-D Plots - MATLAB & Simulink
Programming and Scripts - MATLAB & Simulink
Help and Documentation - MATLAB & Simulink
Creating, Concatenating, and Expanding Matrices - MATLAB & Simulink
Removing Rows or Columns from a Matrix
Reshaping and Rearranging Arrays
Add Title and Axis Labels to Chart
Change Color Scheme Using a Colormap
How Surface Plot Data Relates to a Colormap
How Image Data Relates to a Colormap
Time-Domain Response Data and Plots
Time-Domain Responses of Discrete-Time Model
Time-Domain Responses of MIMO Model
Time-Domain Responses of Multiple Models
Introduction: PID Controller Design
Introduction: Root Locus Controller Design
Introduction: Frequency Domain Methods for Controller Design
DC Motor Speed: PID Controller Design
DC Motor Position: PID Controller Design
Cruise Control: PID Controller Design
Suspension: Root Locus Controller Design
Aircraft Pitch: Root Locus Controller Design
Inverted Pendulum: Root Locus Controller Design
Get Started with Deep Network Designer
Create Simple Image Classification Network Using Deep Network Designer
Build Networks with Deep Network Designer
Classify Image Using GoogLeNet
Classify Webcam Images Using Deep Learning
Transfer Learning with Deep Network Designer
Train Deep Learning Network to Classify New Images
Deep Learning Processor Customization and IP Generation
Prototype Deep Learning Networks on FPGA
Deep Learning Processor Architecture
Deep Learning INT8 Quantization
Quantization of Deep Neural Networks
Custom Processor Configuration Workflow
Estimate Performance of Deep Learning Network by Using Custom Processor Configuration
Preprocess Images for Deep Learning
Preprocess Volumes for Deep Learning
Transfer Learning Using AlexNet
Time Series Forecasting Using Deep Learning
Create Simple Sequence Classification Network Using Deep Network Designer
Classify Image Using Pretrained Network
Train Classification Models in Classification Learner App
Train Regression Models in Regression Learner App
Explore the Random Number Generation UI
Logistic regression create generalized linear regression model - MATLAB fitglm 2
Support Vector Machines for Binary Classification
Support Vector Machines for Binary Classification 2
Support Vector Machines for Binary Classification 3
Support Vector Machines for Binary Classification 4
Support Vector Machines for Binary Classification 5
Assess Neural Network Classifier Performance
Discriminant Analysis Classification
Train Generalized Additive Model for Binary Classification
Train Generalized Additive Model for Binary Classification 2
Classification Using Nearest Neighbors
Classification Using Nearest Neighbors 2
Classification Using Nearest Neighbors 3
Classification Using Nearest Neighbors 4
Classification Using Nearest Neighbors 5
Gaussian Process Regression Models
Gaussian Process Regression Models 2
Understanding Support Vector Machine Regression
Extract Voices from Music Signal
Align Signals with Different Start Times
Find a Signal in a Measurement
Extract Features of a Clock Signal
Filtering Data With Signal Processing Toolbox Software
Find Periodicity Using Frequency Analysis
Find and Track Ridges Using Reassigned Spectrogram
Classify ECG Signals Using Long Short-Term Memory Networks
Waveform Segmentation Using Deep Learning
Label Signal Attributes, Regions of Interest, and Points
Introduction to Streaming Signal Processing in MATLAB
Filter Frames of a Noisy Sine Wave Signal in MATLAB
Filter Frames of a Noisy Sine Wave Signal in Simulink
Lowpass Filter Design in MATLAB
Tunable Lowpass Filtering of Noisy Input in Simulink
Signal Processing Acceleration Through Code Generation
Signal Visualization and Measurements in MATLAB
Estimate the Power Spectrum in MATLAB
Design of Decimators and Interpolators
Multirate Filtering in MATLAB and Simulink