Delta modulation : matlab simulation of DM

Status
Not open for further replies.

kimo4ever

Member level 2
Joined
Dec 10, 2010
Messages
45
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Activity points
1,574
helloo, i try to simulate the delta modulation with matlab, now i have the delta modulated signal and the binary output stream, now my question is: i wanna plot the binary signal versus time , but there some issue is that if for example i have Ts=0.01 sec and i have 1 at 0.001 and 0 at 0.002 , matlab draw a line between them with slope -1 , and i wanna fix its value from 0.001 till it reach 0.002 and then drop vertically, so matlab give me a triangle wave if i have 1 after 0 , and i want it a rectangular one, any help ?...thnx
 

use stairs(t,x), where t is your time vector and x is your data.
 
Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…