Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1. Record and plot Hello world using Matlab. (a) Write a Matlab script that records yourself saying Hello world using the Matlab audiorecorder object. Set

image text in transcribed

1. Record and plot "Hello world" using Matlab. (a) Write a Matlab script that records yourself saying "Hello world" using the Matlab audiorecorder object. Set the sampling rate to 8000 samples/sec and resolution to 16 bits. Include your script as your answer to this item. Hint: Read the Matlab documentation on the audiorecorder object (b) Plot your recording in Matlab. Label your axes appropriately. Include your plot as your answer to this item. (c) On the same axes, plot the average power of your speech over a 20 msec window. Include your script for calculating average power along with your updated plot as your answer to this item Hints: Use Matlabs hold command to plot multiple signals on the same axes. You are asked to compute the average power of a discrete-time signal, so you will be squaring and summing the samples contained in the signal array passed back by the audiorecorder object. Use a loop to control the computation (average power over 20 msec) over the entire signal. See if you can avoid a loop over each 20 msec chunk by using Matlabs colon notation to index into the signal array. Check your work! Play your recording back so that you can make sure you were successful using the Matlab audioplayer object. 1. Record and plot "Hello world" using Matlab. (a) Write a Matlab script that records yourself saying "Hello world" using the Matlab audiorecorder object. Set the sampling rate to 8000 samples/sec and resolution to 16 bits. Include your script as your answer to this item. Hint: Read the Matlab documentation on the audiorecorder object (b) Plot your recording in Matlab. Label your axes appropriately. Include your plot as your answer to this item. (c) On the same axes, plot the average power of your speech over a 20 msec window. Include your script for calculating average power along with your updated plot as your answer to this item Hints: Use Matlabs hold command to plot multiple signals on the same axes. You are asked to compute the average power of a discrete-time signal, so you will be squaring and summing the samples contained in the signal array passed back by the audiorecorder object. Use a loop to control the computation (average power over 20 msec) over the entire signal. See if you can avoid a loop over each 20 msec chunk by using Matlabs colon notation to index into the signal array. Check your work! Play your recording back so that you can make sure you were successful using the Matlab audioplayer object

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

The Database Experts Guide To SQL

Authors: Frank Lusardi

1st Edition

0070390029, 978-0070390027

More Books

Students also viewed these Databases questions

Question

1. Explain how technology has changed the learning environment.

Answered: 1 week ago