Question

Please offer the Matlab code.Answer the question b.c.f.g.

5. (12.5%) The ideal D/A converter described by equation (6.25), equation (6.20), and equation (6.24) cannot be constructed b

(f) Repeat part (d) for various values of F and T-1/Fs. Is the size of the error dependent on the normalized frequency f F/Fs

(6.20)

Ac(t) = 〉 x[n] (6.25) π(t-nT)/T

Comments
    Answer #1

    f)

    0.8 0.6 0.4 0.2 -5 4 3201 2 3 45g)

    1.5 0.5 -0.5 -1 -2 400 450 500 550 600 650 700

    Part A:
    %% function [xhat,t]%%%%%%%%
    %x should be a vector of length N+1. Be careful while giving the input x. It should be a 1x(N+1) vector.
    %sample values: if N=10, T=0.02, then x maybe defined as x=0:N (i.e. 0 to 10, total 11 numbers).
    % I have kept precision=100 points per sampling interval. So the output vectors will be of size 1x(1+N*100) each. The +1 %corresponts to time t=0 point.

    function [xhat,t]=DAC1(x,N,T)

    precision=100;
    t=0:T/precision:N*T;
    xhat=zeros(1,length(t));

    for n=1:N+1
    xhat=xhat+x(n)*(sin(pi*(t-(n-1)*T)/T))./(pi*(t-(n-1)*T)/T);
    end

    end

    Add a comment
    Know the answer?
    Add Answer to:
    5. (12.5%) The ideal D/A converter described by equation (6.25), equation (6.20), and equation (6...
    Your Answer:

    Post as a guest

    Your Name:

    What's your source?

    Earn Coins

    Coins can be redeemed for fabulous gifts.

    Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
    Similar Homework Help Questions
    ADVERTISEMENT
    Free Homework Help App
    Download From Google Play
    Scan Your Homework
    to Get Instant Free Answers
    Need Online Homework Help?
    Ask a Question
    Get Answers For Free
    Most questions answered within 3 hours.
    ADVERTISEMENT
    ADVERTISEMENT
    ADVERTISEMENT