Can anyone help to write the matlab code to convert the signal
x(t)=0.5 0≤≤0.5
x(t)=−0.5 0.5<≤1 to Discrete using zero order hold sampling and quantizing.
x(t)=0.5 0≤≤0.5
x(t)=−0.5 0.5<≤1 to Discrete using zero order hold sampling and quantizing.