Plot the signal representing the tones versus time

Assignment Help MATLAB Programming
Reference no: EM13927458

Problem statement:

1) Prompt a user to enter a .wav filename where the DTMF tones are stored. Load the recorded tones. Use the .wav file provided called project5.wav. (NOTE: this file is on my computer and is not presented.), but the file contains simulated tones for the numbers 24680 which where generated using a previous program which is not important.

2) Plot the signal representing the tones versus time.

3) Use the command ginput to determine the number of tones and set break points to separate the individual tones.

4) Use matlab's fft function to calculate the magnitude spectrum for each digit.

5) plot the signals for each digit and their magnitude spectrum. arrange the graphs so that each page (figure window) contains six graphs labeled. A signal and its magnitude must be displayed next to each other(1st pane has a signal and 2nd pane has its spectrum)

THE code I have that may help:

clear,clc,close all;
filename=input('Enter wavfilname, project5.wav','S');
%>>project5.wav
(y,fs)=wavread(filename)
fs=4000; %sampling freq
dt=1/fs; %time step
fo=1000; % signal frequency
T=1/fo;
t=[0:dt:200*T-dt]
x=sin2*pi*10*t
plot(t,x)
(x,y)=ginput(6) % 6 means 6 mouse clicks only to work on plot
%then on command window see x= a number
a number, etc.
y= a number
a number etc.
% only want x axis, so ignore y axis and to do so...
index1=round(1)/dt
f=g(1:index1);
f1=t(1:index)
plot(t,f)

=======================================
OK, other code have to use the fft function to find the amplitude spectrum of a sinusoid. Here it is:
clear, clc, close all;
fs=4000;
dt=1/fs;
fo=1000;
T=1/fo;
t=[0:dt:200*T-dt];
x=sin(2*pi*fo*t);
N=length(x);
XF=fft(x)/N;
XFM=abs(fftshift(XF));
freq=[-N/2:N/2-1]*fs/N;
plot(freq,XFM)
figure
stem(freq,XFM) % to get rid od extra little side spectrum's due to the way matlab uses math to calculate a spectrum...

Reference no: EM13927458

Questions Cloud

What is the sum of squares of the predicted values : In a different regression analysis, 40% of the variance was explained. The sum of squares total is 1000. What is the sum of squares of the predicted values?
Managerial decision making research and analysis : Research a specific company of your choice and identify some of the managerial decisions that were made over time and in response to changes in its market or competitive environment. Use Ashford University Online library and web-based resources fo..
Discuss the impact of technology on business : Describe the differences between the directional, portfolio, and parenting strategies. In addition, describe when you would use these major types of strategies.
Calculate the one-tailed t and p values using this t test. : What assumptions must be met to perform the F test of two variances
Plot the signal representing the tones versus time : Plot the signal representing the tones versus time - determine the number of tones and set break points to separate the individual tones.
What is the minimum rate of return that folske should demand : What is the minimum rate of return that Folske should demand on the equity-financed portion of investments in its industrial products division.
Calculate the mean-median-mode-variance : Calculate the mean, median, mode, variance, standard deviation and skewness. Construct the 95% confidence interval.
Describe the differences between the directional, portfolio : Describe the differences between the directional, portfolio, and parenting strategies. In addition, describe when you would use these major types of strategies.
How does australian commonwealth bank manage innovation : How does the Australian commonwealth bank manage innovation and provide examples of innovative products and processes developed by the organization in recent years.

Reviews

Write a Review

MATLAB Programming Questions & Answers

  Construct a matlab simulation of pulse sampling

Construct a Matlab simulation of pulse sampling and sample & hold for m(t) = cos(2t) andfs = 10.

  Coding(using for and while loop)

coding(using for and while loop)

  Write a gui function that will display sliders

Write a GUI function that will display sliders - The wind chill factor measures how cold it feels with a given air temperature.

  Write a script to solve the problems using vector operations

Write a script to solve the subsequent problems using only vector operations - Assume you have two vectors named A1 and B1 of equal length and create a vector C1 that combines A1 and B1 such that C1 = [A1(1) B1(1) A1(2) B1(2) . . . . A1(end) B1(end..

  Create a transformation matrix

Find the transformation matrix T02, i.e. T defining {0} with respect to {2}. Learn how to compute the inverse of T20 to get this. Verify that this works by using tranimate to view the movement of frame

  Write a program that examines student in basic arithmetic

Write a program that examines the student in the basic arithmetic operations (summation, subtraction and multiplications).

  Vb and matlab to calculate the cumulative days

Create a function TotalDaysMonth(intYear, intMonth, strIndOrCum) in both VB and Matlab to calculate the cumulative days or number of days in a given month, depending on inputs, by employing array vector in VB or a vector matrix in Matlab.

  Print the total dollar amount of inventory

Use fscanf to read this information, and print the total dollar amount of inventory - stores on each line a part number, cost, and quantity in inventory

  Find the average value and the power of signal

Find the average value and the power of this signal by integrating 1/T0 v(t) and 1/T0 v2(t) respectively in the time domain, over one period. Your answer must be expressed in terms of fc and Ac only.

  How to cipher on matlab the message consisting eight symbols

How to cipher on Matlab the message consisting eight symbols. At first the message shares on blocks. Then in each of blocks shift of symbols is carried out.

  Matlab – discrete time simulation

MATLAB – Discrete time simulation, solve  Discrete time syetm problem,  DT kalman filter problem,  Steady state DT kalman filter problem

  Write a user defined function

Write a user defined function FindFrequency which inputs are a time and a wave elevation vector and output the approximated wave frequency (fappr=FindFrequency(t,eta)).

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd