Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Let's create a new signal containing the instrument song and some noise. There are several ways to accomplish this in Matlab / Octave , but

Let's create a new signal containing the instrument song and some noise. There are several ways to accomplish this in Matlab/Octave, but in C/C++, you need to use a loop. Create a Matlab/Octave script that creates the vector
instrNoise[n]= instr[n]+ noise[n]
using a for loop. Save the script with a name (lab1.m); and execute the script with
>> lab1
NOTES:
TIP: the command length(instr) returns the number of samples that the DT signal instr has. Are the 2 signals defined for any index n?
To define the ith position of a vector y in MATLAB/Octave, you use y(n) instead of y[n].
Indices of vectors in MATLAB/Octave can only be 1 or greater.
To avoid Matlab/Octave to print intermediary results, use ; after the command.

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

Data Management Databases And Organizations

Authors: Watson Watson

5th Edition

0471715360, 978-0471715368

More Books

Students also viewed these Databases questions