domingo, 14 de mayo de 2017

MATLAB Tutorial

1. IMAGE PROCESSING USING WIENER FILTER

The Wiener filter can be used to filter out the noise from the corrupted signal to provide an estimate of the underlying signal of interest. The Wiener filter is based on a statistical approach, and a more statistical account of the theory is given in the minimum mean square error (MMSE) estimator article.

The download code of the Image Processing Using Wiener Filter, you can get it in the following link: Image Processing Using Wiener Filter
_______________________________________________________________________

2. AUDIO SIGNAL PROCESSING USING FDATOOL 


The audio must be in wav format and if you don`t have it, then you can make it through many programs available on the Internet.

By fdatool, we can design high-pass or lowpass or bandpass filters. Also, digital filters may be IIR or FIR; In my case I`m designing a highpass filter and I`m trying to eliminate the deep voice.

In this example we will make a high pass filter. The steps are the following:
put the command > fdatool



When the window opens, we write the following information:
Highpass filter
Type IIR - Elliptic
Fs = 8000 Hz
Fstop = 1500 Hz
Fpass = 2000 Hz
Rs = 60 dB
Rp = 1 dB

Click on Design Filter



Fdatool Window




Right-click on:
Structure> Current filter information> convert to single section
Then select:
File> Export ...
We give a name to the numerator and denominator of the filter.

Finally click on Export and save the project.


Code:


In the Matlab code we have to put the audio path that we will process and the name of the audio that we will create. When we run the code we will have audio signal processed in the same folder as the original audio signal.


[xt,Fs]=wavread('d:\Audio.wav');
yt=filter(NumHp,DenHp,xt);
soundsc(xt);
pause(2);
soundsc(yt);
fvtool(xt);
fvtool(yt);
%salvar audio filtrado
wavwrite(yt,'Audio01.wav'
_______________________________________________________________________

3. FOURIER TRANSFORM FUNCTIONS


The download code of the Fourier Transform Functions, you can get it in the following link: Fourier Transform Functions
_______________________________________________________________________

4. BANDPASS RLC CIRCUIT

The download code of the Fourier Transform Functions, you can get it in the following link:
Bandpass RLC Network

_______________________________________________________________________

5.  PLOTTING RIEMANN Z FUNCTION

Commands:

plotfunc2d(abs(zeta(1/2 + y*I)), y = 0..30, Mesh = 500)

plotfunc2d(abs(zeta(1/2 + y*I)), y = 0..30, Mesh = 500, AxesTitles = ["y", "zeta"])

plotfunc2d(abs(zeta(1/2 + y*I)), y = 0..50, Mesh = 500, AxesTitles = ["y", "zeta"])

fplot (abs(zeta(1/2+y*I)),[0..30])

zeta(-2)

zeta(0)

zeta(2)

zeta(1 + I, 1)

zeta(0,1)

zeta(infinity,1)

zeta(0.5 + 14.13472514*I, 2)

numeric::solve(zeta(1/2 + I*y), y = 10..20)

numeric::solve(zeta(1/2 + I*y), y = 10..22)

numeric::solve(zeta(1/2 + I*y), y = 20..26)

_______________________________________________________________________

6.  IDENTIFICATION OF FACES



http://guillengap.blogspot.com/2017/05/ebook-identification-of-faces-with.html

 https://www.amazon.com/dp/B071ZKG37Q
 
https://www.amazon.com/Guillermo%20Perez/e/B01EZOTUVQ/

guillengap@gmail.com

No hay comentarios:

Publicar un comentario