kimo4ever
Member level 2
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