--- Saving session to:
    ECE481_18-Apr-2003.txt
--- startup.m processed OK ---
; ; ; ; ; ; ; 
g = 1/2

g =

    0.5000

N=10

N =

    10

acoeff = [1 zeros(1,N-1) -g -g]

acoeff =

  Columns 1 through 7 

    1.0000         0         0         0         0         0         0

  Columns 8 through 12 

         0         0         0   -0.5000   -0.5000

bcoeff=1

bcoeff =

     1

H=freqz(bcoeff,acoeff,[0:pi/100:pi]
??? H=freqz(bcoeff,acoeff,[0:pi/100:pi]
                                       |
Error: ")" expected, "end of line" found.

H=freqz(bcoeff,acoeff,[0:pi/100:pi])
Warning: Divide by zero.
> In C:\MatLab6p1\toolbox\signal\signal\freqz.m at line 87

H =

  Columns 1 through 4 

      Inf             0.5011 - 3.0040i   0.5012 - 1.4604i   0.5012 - 0.9267i

  Columns 5 through 8 

   0.5013 - 0.6446i   0.5014 - 0.4622i   0.5016 - 0.3284i   0.5018 - 0.2210i

  Columns 9 through 12 

   0.5021 - 0.1284i   0.5025 - 0.0433i   0.5031 + 0.0393i   0.5040 + 0.1242i

  Columns 13 through 16 

   0.5053 + 0.2163i   0.5074 + 0.3228i   0.5111 + 0.4548i   0.5183 + 0.6339i

  Columns 17 through 20 

   0.5344 + 0.9085i   0.5819 + 1.4196i   0.8381 + 2.8256i  20.2389 + 6.8550i

  Columns 21 through 24 

   1.0000 - 3.0777i   0.6374 - 1.4873i   0.5693 - 0.9403i   0.5452 - 0.6532i

  Columns 25 through 28 

   0.5342 - 0.4684i   0.5286 - 0.3333i   0.5258 - 0.2253i   0.5248 - 0.1323i

  Columns 29 through 32 

   0.5252 - 0.0471i   0.5270 + 0.0353i   0.5305 + 0.1196i   0.5364 + 0.2108i

  Columns 33 through 36 

   0.5462 + 0.3154i   0.5631 + 0.4439i   0.5949 + 0.6152i   0.6633 + 0.8696i

  Columns 37 through 40 

   0.8486 + 1.3071i   1.6175 + 2.1905i   5.6427 + 0.8458i   2.0684 - 2.2823i

  Columns 41 through 44 

   1.0000 - 1.3764i   0.7504 - 0.9089i   0.6587 - 0.6412i   0.6162 - 0.4633i

  Columns 45 through 48 

   0.5940 - 0.3315i   0.5822 - 0.2253i   0.5766 - 0.1338i   0.5756 - 0.0501i

  Columns 49 through 52 

   0.5787 + 0.0307i   0.5863 + 0.1126i   0.6000 + 0.2000i   0.6230 + 0.2981i

  Columns 53 through 56 

   0.6620 + 0.4141i   0.7318 + 0.5585i   0.8682 + 0.7450i   1.1660 + 0.9716i

  Columns 57 through 60 

   1.8433 + 1.0618i   2.6472 + 0.2077i   2.0726 - 0.8614i   1.3458 - 0.9133i

  Columns 61 through 64 

   1.0000 - 0.7265i   0.8372 - 0.5537i   0.7531 - 0.4158i   0.7067 - 0.3040i

  Columns 65 through 68 

   0.6809 - 0.2096i   0.6680 - 0.1262i   0.6644 - 0.0493i   0.6691 + 0.0244i

  Columns 69 through 72 

   0.6825 + 0.0975i   0.7065 + 0.1722i   0.7453 + 0.2500i   0.8060 + 0.3306i

  Columns 73 through 76 

   0.9007 + 0.4093i   1.0454 + 0.4694i   1.2495 + 0.4674i   1.4714 + 0.3333i

  Columns 77 through 80 

   1.5787 + 0.0577i   1.4875 - 0.2105i   1.2984 - 0.3434i   1.1251 - 0.3618i

  Columns 81 through 84 

   1.0000 - 0.3249i   0.9169 - 0.2683i   0.8640 - 0.2072i   0.8324 - 0.1471i

  Columns 85 through 88 

   0.8166 - 0.0899i   0.8134 - 0.0361i   0.8213 + 0.0139i   0.8398 + 0.0592i

  Columns 89 through 92 

   0.8688 + 0.0980i   0.9076 + 0.1276i   0.9544 + 0.1439i   1.0045 + 0.1429i

  Columns 93 through 96 

   1.0499 + 0.1227i   1.0813 + 0.0869i   1.0927 + 0.0447i   1.0848 + 0.0072i

  Columns 97 through 100 

   1.0645 - 0.0177i   1.0402 - 0.0280i   1.0190 - 0.0258i   1.0049 - 0.0150i

  Column 101 

   1.0000 - 0.0000i

plot(abs(H))
g=.1

g =

    0.1000

acoeff = [1 zeros(1,N-1) -g -g]

acoeff =

  Columns 1 through 7 

    1.0000         0         0         0         0         0         0

  Columns 8 through 12 

         0         0         0   -0.1000   -0.1000

[H,F] = freqz(b,a,fs/2,fs);
??? Undefined function or variable 'b'.

H=freqz(bcoeff,acoeff,[0:pi/100:pi])

H =

  Columns 1 through 4 

   1.2500             1.2255 - 0.0979i   1.1630 - 0.1692i   1.0850 - 0.2035i

  Columns 5 through 8 

   1.0104 - 0.2056i   0.9483 - 0.1856i   0.9009 - 0.1526i   0.8674 - 0.1125i

  Columns 9 through 12 

   0.8463 - 0.0689i   0.8361 - 0.0238i   0.8362 + 0.0216i   0.8465 + 0.0665i

  Columns 13 through 16 

   0.8676 + 0.1095i   0.9008 + 0.1488i   0.9475 + 0.1808i   1.0080 + 0.1997i

  Columns 17 through 20 

   1.0799 + 0.1971i   1.1540 + 0.1639i   1.2129 + 0.0963i   1.2363 + 0.0046i

  Columns 21 through 24 

   1.2146 - 0.0872i   1.1575 - 0.1550i   1.0854 - 0.1889i   1.0153 - 0.1927i

  Columns 25 through 28 

   0.9563 - 0.1754i   0.9108 - 0.1452i   0.8785 - 0.1079i   0.8581 - 0.0669i

  Columns 29 through 32 

   0.8484 - 0.0244i   0.8486 + 0.0182i   0.8588 + 0.0600i   0.8792 + 0.0994i

  Columns 33 through 36 

   0.9107 + 0.1344i   0.9539 + 0.1616i   1.0083 + 0.1760i   1.0705 + 0.1709i

  Columns 37 through 40 

   1.1322 + 0.1401i   1.1796 + 0.0826i   1.1980 + 0.0075i   1.1815 - 0.0674i

  Columns 41 through 44 

   1.1370 - 0.1244i   1.0789 - 0.1555i   1.0204 - 0.1620i   0.9695 - 0.1501i

  Columns 45 through 48 

   0.9292 - 0.1260i   0.9001 - 0.0947i   0.8816 - 0.0596i   0.8729 - 0.0229i

  Columns 49 through 52 

   0.8734 + 0.0139i   0.8830 + 0.0494i   0.9016 + 0.0820i   0.9294 + 0.1095i

  Columns 53 through 56 

   0.9659 + 0.1290i   1.0095 + 0.1368i   1.0564 + 0.1290i   1.1000 + 0.1030i

  Columns 57 through 60 

   1.1313 + 0.0602i   1.1427 + 0.0077i   1.1317 - 0.0439i   1.1025 - 0.0844i

  Columns 61 through 64 

   1.0631 - 0.1086i   1.0218 - 0.1162i   0.9841 - 0.1102i   0.9533 - 0.0943i

  Columns 65 through 68 

   0.9305 - 0.0719i   0.9159 - 0.0459i   0.9093 - 0.0184i   0.9102 + 0.0090i

  Columns 69 through 72 

   0.9185 + 0.0347i   0.9335 + 0.0570i   0.9546 + 0.0742i   0.9805 + 0.0844i

  Columns 73 through 76 

   1.0089 + 0.0858i   1.0368 + 0.0773i   1.0600 + 0.0592i   1.0750 + 0.0339i

  Columns 77 through 80 

   1.0793 + 0.0054i   1.0727 - 0.0215i   1.0576 - 0.0427i   1.0375 - 0.0559i

  Columns 81 through 84 

   1.0158 - 0.0609i   0.9956 - 0.0585i   0.9789 - 0.0504i   0.9665 - 0.0385i

  Columns 85 through 88 

   0.9591 - 0.0245i   0.9565 - 0.0100i   0.9584 + 0.0038i   0.9641 + 0.0155i

  Columns 89 through 92 

   0.9728 + 0.0243i   0.9833 + 0.0294i   0.9942 + 0.0306i   1.0041 + 0.0280i

  Columns 93 through 96 

   1.0117 + 0.0225i   1.0163 + 0.0153i   1.0175 + 0.0077i   1.0159 + 0.0013i

  Columns 97 through 100 

   1.0123 - 0.0032i   1.0079 - 0.0053i   1.0038 - 0.0050i   1.0010 - 0.0030i

  Column 101 

   1.0000 - 0.0000i

plot(abs(H))
edit karstr
karstr(200,0.5)
Warning: Divide by zero.
> In C:\MatLab6p1\toolbox\signal\signal\freqz.m at line 87
  In c:\documents and settings\doering\rhit\class\2002-03\spring\ece481\matlab\karstr.m at line 51
zoom on
karstr(100,0.5)
Warning: Divide by zero.
> In C:\MatLab6p1\toolbox\signal\signal\freqz.m at line 87
  In c:\documents and settings\doering\rhit\class\2002-03\spring\ece481\matlab\karstr.m at line 51
karstr(20,0.5)
Warning: Divide by zero.
> In C:\MatLab6p1\toolbox\signal\signal\freqz.m at line 87
  In c:\documents and settings\doering\rhit\class\2002-03\spring\ece481\matlab\karstr.m at line 51
karstr(1000,0.5)
Warning: Divide by zero.
> In C:\MatLab6p1\toolbox\signal\signal\freqz.m at line 87
  In c:\documents and settings\doering\rhit\class\2002-03\spring\ece481\matlab\karstr.m at line 51
karstr(1000,0.25)
karstr(1000,0.501)
exit