Friday, April 13, 2012

Companding of signal using MULAW in MATLAB

clear all
close all
clc
M=input('enter the signal') %enter the signal with time like sin(2*pi*[0:0.01:1]
Mmax=max(M)
Mn=M/Mmax
u=input('enter the u value') %default value is 255
Vn=log(1+u*Mn)/(log(1+u))
 figure(1)
 plot(Mn)
 figure(2)
 plot(Vn)
 figure(3)
plot(Mn,Vn)

No comments:

Post a Comment

DC motor control with Pulse Width Modulation Part 1

DC Motor intro DC motor is a device which converts electrical energy into kinetic energy. It converts the DC power into movement. The typica...