Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

How to set frequency in matlab

  1. Aug 16, 2009 #1
    Question?
    for a short-circuit transmission line of l=10cm. determine the the expression to calculate the magnitude of the input impedance. Use matlab to draw magnitude plot when the frequency is swept away from f=1GHz to 3GHz. the line parameters are: L=209.4nH/m and C=119.5pF/m.

    My matlab coding for this solution:

    L=209.410e-9;
    c=119.510e-12;
    vp=1/sqrt(L*C);
    Z0=sqrt(L/C);
    l=0.1;
    N=5000;
    f=1e9+3e9*(0:N)/N;
    Z=tan(2*pi*f*d/vp);
    axis([1 3 0 500])

    i am not sure whether i have set the frequency in the coding correctly, can anyone pls chk this for me thanks.....
     
  2. jcsd
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook

Can you offer guidance or do you also need help?
Draft saved Draft deleted