2. Discrete to Continuous Conversion: Discrete time MATLAB signals can be converted to continuous time signals with the function soundsc which put out an analog signal for listening. In the following MATLAB code a discrete time sinusoid is generated and then played out with soundsc: nn=0:219009; xx=(7/pi)*cos(0.4*pi*nn+2.03); soundsc(xx,16000) a) Determine the analog frequency (in Hz) that will be heard. b) What is the duration of the signal in seconds? c) Now the code is changed to nn=0:219009; xx=(7/pi)*cos(0.4*pi*nn+2.03); soundsc(xx,32000) What will be the new analog frequency and tone duration that is heard? d) Now the code is changed to nn=0:219009; xx=(7/pi)*cos(0.4*pi*nn+2.03); soundsc (xx,8000) What will be the new analog frequency and tone duration that is heard?
Share
1 Answer