MATLAB: How to simulate ADC through matlab code adc's and dac'sCommunications Toolbox Hi, Suggest matlab code for simulating high speed ADC's and DAC's. regards, srinivas Best Answer You can try to use "fi" objects that encode fixed-point behavior and hence ADC/DAC natively. https://www.mathworks.com/company/newsletters/articles/best-practices-for-converting-matlab-code-to-fixed-point.html?s_tid=answers_rc2-3_p6_Topic Related SolutionsMATLAB: How to convert digital data into analog data using matlab code U=10; % range signal from 0 to 10n=3 % number of bitsq=U/(2^n-1) % quantization intervalt=0:0.1:10; % your time vectory=abs(10*sin(t)); % your signal% -------convert to a digital signal yd-----------a=fix(y/q);yd=dec2bin(a,n)% ------you can calculate the signal yq ----------yq=a*q %-------------------------------------------------plot(t,y,'r')hold onplot(t,yq,'g')hold off MATLAB: How should we know the functionality of built in functions doc rsenchelp rsenc Related Question
Best Answer