Design a matlab code that: 1-play sound 2- add noise to the sound 3- filter the noised signal...

70.2K

Verified Solution

Question

Electrical Engineering

Design a matlab code that:

1-play sound

2- add noise to the sound

3- filter the noised signal using fir or iir filter

Note: FIR: Finite impulse response filter

IIR: Infinite impulse response filter

Answer & Explanation Solved by verified expert
4.0 Ratings (471 Votes)
functionvarargout Voicevarargin VOICE MATLAB code for Voicefig VOICE by itself creates a new VOICE or raises the existing singleton H VOICE returns the handle to a new VOICE or the handle to the existing singleton VOICECALLBACKhObjecteventDatahandles calls the local function named CALLBACK in VOICEM with the given input arguments VOICEPropertyValue creates a new VOICE or raises the existing singleton Starting from the left property value pairs are applied to the GUI before VoiceOpeningFcn gets called An unrecognized property name or invalid value makes property application stop All inputs are passed to VoiceOpeningFcn via varargin See GUI Options on GUIDEs Tools menu Choose GUI allows only one instance to run singleton See also GUIDE GUIDATA GUIHANDLES Edit the above text to modify the response to help Voice Last Modified by GUIDE v25 26May2014 135110 Begin initialization code DO NOT EDIT guiSingleton 1 guiState structguiName mfilename guiSingleton guiSingleton guiOpeningFcn VoiceOpeningFcn guiOutputFcn VoiceOutputFcn guiLayoutFcn guiCallback ifnarginischarvarargin1 guiStateguiCallback str2funcvarargin1 end ifnargout varargout1nargout guimainfcnguiState varargin else guimainfcnguiState varargin end End initialization code DO NOT EDIT Executes just before Voice is made visible functionVoiceOpeningFcnhObject eventdata handles varargin This function has no output args see OutputFcn hObject handle to figure eventdata reserved to be defined in a future version of MATLAB handles structure with handles and user data see GUIDATA varargin command line arguments to Voice see VARARGIN Choose default command line output for Voice handlesoutput hObject Update handles structure guidatahObject handles UIWAIT makes Voice wait for user response see UIRESUME uiwaithandlesfigure1 Outputs from this function are returned to the command line functionvarargout VoiceOutputFcnhObject eventdata handles varargout cell array for returning output args see VARARGOUT hObject handle to figure eventdata reserved to be defined in a future version of MATLAB handles structure with handles and user data see GUIDATA Get default command line output from handles structure varargout1 handlesoutput Executes on button press in pushbutton2 function pushbutton2CallbackhObject eventdata handles hObject handle to pushbutton2 see GCBO eventdata reserved to be defined in a future version of MATLAB handles structure with handles and user data see GUIDATA F17000 F2800 F31000 a2F2F1 b2F3F1 r12 r260 p1110r120 s110r220 FFa b ma1 0 vp1 s1 A21wA21btYpkaiserordFFmav B21fir1A21wA21kaiserA211bt hwfreqzB211 figure plotw700005piabsh titleFIR low pass filterfontweightbold grid Executes on button press in pushbutton3 function pushbutton3CallbackhObject eventdata handles    See Answer
Get Answers to Unlimited Questions

Join us to gain access to millions of questions and expert answers. Enjoy exclusive benefits tailored just for you!

Membership Benefits:
  • Unlimited Question Access with detailed Answers
  • Zin AI - 3 Million Words
  • 10 Dall-E 3 Images
  • 20 Plot Generations
  • Conversation with Dialogue Memory
  • No Ads, Ever!
  • Access to Our Best AI Platform: Flex AI - Your personal assistant for all your inquiries!
Become a Member

Other questions asked by students