Created
September 8, 2015 08:35
-
-
Save PeterPablo/b01cbe8572a9e5989037 to your computer and use it in GitHub Desktop.
555e0a2 running with MATLAB 8.4
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| % This file was created by matlab2tikz. | |
| % | |
| \documentclass[tikz]{standalone} | |
| \usepackage[T1]{fontenc} | |
| \usepackage[utf8]{inputenc} | |
| \usepackage{pgfplots} | |
| \usepackage{grffile} | |
| \pgfplotsset{compat=newest} | |
| \usetikzlibrary{plotmarks} | |
| \usetikzlibrary{arrows.meta} | |
| \usepgfplotslibrary{patchplots} | |
| \usepackage{amsmath} | |
| \newlength\figureHeight \setlength{\figureHeight}{6cm} | |
| \newlength\figureWidth \setlength{\figureWidth}{10cm} | |
| \begin{document} | |
| \definecolor{mycolor1}{rgb}{0.00000,0.44700,0.74100}% | |
| \definecolor{mycolor2}{rgb}{0.85000,0.32500,0.09800}% | |
| % | |
| \begin{tikzpicture} | |
| \begin{axis}[% | |
| width=0.927\figureWidth, | |
| height=\figureHeight, | |
| at={(0\figureWidth,0\figureHeight)}, | |
| scale only axis, | |
| unbounded coords=jump, | |
| separate axis lines, | |
| every outer x axis line/.append style={black}, | |
| every x tick label/.append style={font=\color{black}}, | |
| xmin= 0, | |
| xmax=0.999878, | |
| xlabel={$\text{Normalized Frequency (}\times\pi\text{ rad/sample)}$}, | |
| xmajorgrids, | |
| every outer y axis line/.append style={black}, | |
| every y tick label/.append style={font=\color{black}}, | |
| ymin=-113.635, | |
| ymax=5.36115, | |
| ylabel={Magnitude (dB)}, | |
| ymajorgrids, | |
| axis background/.style={fill=white}, | |
| title style={font=\bfseries}, | |
| title={Magnitude Response (dB) and Phase Response} | |
| ] | |
| \addplot [color=mycolor1,solid,forget plot] | |
| table[row sep=crcr]{% | |
| 0 0\\ | |
| 0.417603 -0.000487673\\ | |
| 0.42688 0.000319285\\ | |
| 0.43396 0.000601834\\ | |
| 0.4375 -0.00180866\\ | |
| 0.440674 -0.00752189\\ | |
| 0.443726 -0.0182019\\ | |
| 0.447021 -0.0382523\\ | |
| 0.450562 -0.0737856\\ | |
| 0.454346 -0.133865\\ | |
| 0.458496 -0.234997\\ | |
| 0.462891 -0.394569\\ | |
| 0.467651 -0.64508\\ | |
| 0.472778 -1.02709\\ | |
| 0.478271 -1.59337\\ | |
| 0.484253 -2.43009\\ | |
| 0.490601 -3.61229\\ | |
| 0.497437 -5.27835\\ | |
| 0.504639 -7.54221\\ | |
| 0.512207 -10.5724\\ | |
| 0.520142 -14.5918\\ | |
| 0.528198 -19.7412\\ | |
| 0.536133 -26.147\\ | |
| 0.543701 -33.9357\\ | |
| 0.550537 -43.0942\\ | |
| 0.556274 -53.519\\ | |
| 0.560547 -64.9174\\ | |
| 0.563232 -77.3693\\ | |
| 0.564453 -91.206\\ | |
| 0.564819 -109.202\\ | |
| 0.564941 -108.421\\ | |
| 0.566162 -84.7593\\ | |
| 0.567993 -81.0375\\ | |
| 0.568359 -80.9595\\ | |
| 0.568604 -80.9839\\ | |
| 0.569336 -81.3834\\ | |
| 0.570801 -83.5773\\ | |
| 0.57251 -89.4175\\ | |
| 0.57373 -101.145\\ | |
| 0.574219 -119.797\\ | |
| 0.575439 -92.4509\\ | |
| 0.577637 -85.1034\\ | |
| 0.579956 -82.8018\\ | |
| 0.581055 -82.5832\\ | |
| 0.581421 -82.6078\\ | |
| 0.582397 -82.8977\\ | |
| 0.584106 -84.2038\\ | |
| 0.586182 -87.5013\\ | |
| 0.588135 -94.0814\\ | |
| 0.589355 -105.668\\ | |
| 0.589844 -125.403\\ | |
| 0.591064 -96.8696\\ | |
| 0.593262 -88.939\\ | |
| 0.595947 -85.5168\\ | |
| 0.598145 -84.666\\ | |
| 0.598511 -84.6459\\ | |
| 0.598999 -84.6688\\ | |
| 0.599976 -84.882\\ | |
| 0.601685 -85.8069\\ | |
| 0.603882 -88.2286\\ | |
| 0.606079 -92.9767\\ | |
| 0.607788 -101.43\\ | |
| 0.608643 -116.794\\ | |
| 0.608748 -125.534\\ | |
| nan nan\\ | |
| 0.608907 -125.534\\ | |
| 0.612305 -91.749\\ | |
| 0.615112 -87.894\\ | |
| 0.617676 -86.6376\\ | |
| 0.618652 -86.5403\\ | |
| 0.619019 -86.5525\\ | |
| 0.619873 -86.6829\\ | |
| 0.62146 -87.3101\\ | |
| 0.623657 -89.1198\\ | |
| 0.625977 -92.7787\\ | |
| 0.62793 -99.0249\\ | |
| 0.62915 -109.021\\ | |
| 0.629603 -125.534\\ | |
| nan nan\\ | |
| 0.630002 -125.534\\ | |
| 0.630981 -102.24\\ | |
| 0.633301 -93.73\\ | |
| 0.63623 -89.7083\\ | |
| 0.638916 -88.3146\\ | |
| 0.640259 -88.1585\\ | |
| 0.640625 -88.1718\\ | |
| 0.641602 -88.323\\ | |
| 0.643311 -89.0043\\ | |
| 0.645508 -90.7816\\ | |
| 0.647949 -94.5485\\ | |
| 0.650024 -101.266\\ | |
| 0.651245 -112.156\\ | |
| 0.651611 -124.228\\ | |
| 0.651614 -125.534\\ | |
| nan nan\\ | |
| 0.652528 -125.534\\ | |
| 0.652832 -105.24\\ | |
| 0.655029 -96.1172\\ | |
| 0.657959 -91.592\\ | |
| 0.660767 -89.8387\\ | |
| 0.66272 -89.5237\\ | |
| 0.663086 -89.5364\\ | |
| 0.664062 -89.6789\\ | |
| 0.665771 -90.3207\\ | |
| 0.667969 -91.9925\\ | |
| 0.67041 -95.499\\ | |
| 0.672485 -101.506\\ | |
| 0.673828 -111.371\\ | |
| 0.674316 -124.203\\ | |
| 0.674326 -125.534\\ | |
| nan nan\\ | |
| 0.674963 -125.534\\ | |
| 0.675659 -105.957\\ | |
| 0.677856 -97.2986\\ | |
| 0.680786 -92.8369\\ | |
| 0.683594 -91.0496\\ | |
| 0.685669 -90.6795\\ | |
| 0.686157 -90.694\\ | |
| 0.687134 -90.8369\\ | |
| 0.688843 -91.4654\\ | |
| 0.691162 -93.2131\\ | |
| 0.693604 -96.7125\\ | |
| 0.695679 -102.688\\ | |
| 0.697021 -112.448\\ | |
| 0.69751 -124.822\\ | |
| 0.697516 -125.534\\ | |
| nan nan\\ | |
| 0.698169 -125.534\\ | |
| 0.698975 -106.391\\ | |
| 0.701294 -97.9422\\ | |
| 0.704224 -93.7312\\ | |
| 0.707153 -91.9767\\ | |
| 0.709106 -91.6633\\ | |
| 0.709595 -91.6786\\ | |
| 0.710571 -91.8201\\ | |
| 0.71228 -92.4366\\ | |
| 0.7146 -94.1461\\ | |
| 0.717041 -97.5553\\ | |
| 0.719116 -103.304\\ | |
| 0.720459 -112.247\\ | |
| 0.720994 -125.534\\ | |
| nan nan\\ | |
| 0.72106 -125.534\\ | |
| 0.72106 -125.534\\ | |
| nan nan\\ | |
| 0.721929 -125.534\\ | |
| 0.722412 -108.047\\ | |
| 0.724731 -99.1323\\ | |
| 0.727661 -94.7616\\ | |
| 0.730591 -92.8983\\ | |
| 0.732666 -92.5076\\ | |
| 0.732788 -92.5054\\ | |
| 0.733276 -92.5194\\ | |
| 0.734253 -92.6561\\ | |
| 0.735962 -93.2574\\ | |
| 0.738281 -94.9287\\ | |
| 0.740723 -98.2557\\ | |
| 0.74292 -104.301\\ | |
| 0.744263 -113.492\\ | |
| 0.744689 -125.534\\ | |
| nan nan\\ | |
| 0.744819 -125.534\\ | |
| 0.744819 -125.534\\ | |
| nan nan\\ | |
| 0.745608 -125.534\\ | |
| 0.746216 -108.666\\ | |
| 0.748535 -99.887\\ | |
| 0.751587 -95.4125\\ | |
| 0.754517 -93.6037\\ | |
| 0.756592 -93.2294\\ | |
| 0.756714 -93.2278\\ | |
| 0.757202 -93.2439\\ | |
| 0.758179 -93.3833\\ | |
| 0.759888 -93.9853\\ | |
| 0.762207 -95.6497\\ | |
| 0.764648 -98.9564\\ | |
| 0.766846 -104.95\\ | |
| 0.768188 -113.976\\ | |
| nan nan\\ | |
| 0.769666 -125.534\\ | |
| 0.77002 -110.423\\ | |
| 0.772217 -101.206\\ | |
| 0.775146 -96.4745\\ | |
| 0.778198 -94.3523\\ | |
| 0.780396 -93.8586\\ | |
| 0.780762 -93.8478\\ | |
| 0.78125 -93.8641\\ | |
| 0.782227 -94.003\\ | |
| 0.783936 -94.6007\\ | |
| 0.786255 -96.2522\\ | |
| 0.788696 -99.5306\\ | |
| 0.790894 -105.453\\ | |
| 0.792236 -114.255\\ | |
| nan nan\\ | |
| 0.793692 -125.534\\ | |
| 0.794312 -109.503\\ | |
| 0.796631 -101.025\\ | |
| 0.799683 -96.5995\\ | |
| 0.802612 -94.7802\\ | |
| 0.804688 -94.3824\\ | |
| 0.804932 -94.378\\ | |
| 0.805298 -94.3878\\ | |
| 0.806274 -94.5104\\ | |
| 0.807861 -95.0192\\ | |
| 0.810059 -96.4458\\ | |
| 0.8125 -99.416\\ | |
| 0.814697 -104.595\\ | |
| 0.816284 -113.417\\ | |
| 0.816866 -125.534\\ | |
| nan nan\\ | |
| 0.816989 -125.534\\ | |
| 0.816989 -125.534\\ | |
| nan nan\\ | |
| 0.817844 -125.534\\ | |
| 0.818481 -110.06\\ | |
| 0.820801 -101.544\\ | |
| 0.823853 -97.0944\\ | |
| 0.826782 -95.252\\ | |
| 0.828979 -94.831\\ | |
| 0.829224 -94.8285\\ | |
| 0.829712 -94.8497\\ | |
| 0.830811 -95.0252\\ | |
| 0.832642 -95.7323\\ | |
| 0.834961 -97.5152\\ | |
| 0.837402 -101.036\\ | |
| 0.839478 -107.074\\ | |
| 0.84082 -117.199\\ | |
| nan nan\\ | |
| 0.842243 -125.534\\ | |
| 0.842651 -111.055\\ | |
| 0.844971 -102.153\\ | |
| 0.848022 -97.5838\\ | |
| 0.851074 -95.6319\\ | |
| 0.853271 -95.2093\\ | |
| 0.853516 -95.2064\\ | |
| 0.854004 -95.2266\\ | |
| 0.855103 -95.3995\\ | |
| 0.856934 -96.1003\\ | |
| 0.859253 -97.8709\\ | |
| 0.861694 -101.369\\ | |
| 0.86377 -107.354\\ | |
| 0.865112 -117.278\\ | |
| nan nan\\ | |
| 0.86652 -125.534\\ | |
| 0.866943 -111.555\\ | |
| 0.869263 -102.549\\ | |
| 0.872314 -97.9424\\ | |
| 0.875366 -95.9642\\ | |
| 0.877563 -95.5229\\ | |
| 0.877808 -95.5178\\ | |
| 0.878296 -95.5336\\ | |
| 0.879272 -95.669\\ | |
| 0.880981 -96.254\\ | |
| 0.883301 -97.8738\\ | |
| 0.885742 -101.091\\ | |
| 0.887939 -106.878\\ | |
| 0.889404 -116.707\\ | |
| 0.889678 -125.534\\ | |
| 0.890763 -125.534\\ | |
| 0.891357 -111.451\\ | |
| 0.893677 -102.705\\ | |
| 0.896729 -98.1605\\ | |
| 0.89978 -96.2044\\ | |
| 0.901978 -95.7716\\ | |
| 0.902222 -95.7673\\ | |
| 0.902588 -95.777\\ | |
| 0.903564 -95.8977\\ | |
| 0.905151 -96.3993\\ | |
| 0.907349 -97.8077\\ | |
| 0.90979 -100.744\\ | |
| 0.911987 -105.862\\ | |
| 0.913574 -114.518\\ | |
| nan nan\\ | |
| 0.915649 -125.534\\ | |
| 0.917603 -104.055\\ | |
| 0.920532 -98.9856\\ | |
| 0.923584 -96.6496\\ | |
| 0.926025 -95.9855\\ | |
| 0.926636 -95.9581\\ | |
| 0.927246 -95.9843\\ | |
| 0.928345 -96.1678\\ | |
| 0.930176 -96.8859\\ | |
| 0.932495 -98.6845\\ | |
| 0.934937 -102.242\\ | |
| 0.937012 -108.401\\ | |
| 0.938354 -119.12\\ | |
| nan nan\\ | |
| 0.93931 -125.534\\ | |
| 0.940552 -109.561\\ | |
| 0.942993 -102.032\\ | |
| 0.946045 -98.0628\\ | |
| 0.948975 -96.4163\\ | |
| 0.950928 -96.0945\\ | |
| 0.95105 -96.0928\\ | |
| 0.951538 -96.1075\\ | |
| 0.952515 -96.2403\\ | |
| 0.954224 -96.8192\\ | |
| 0.956543 -98.4284\\ | |
| 0.958984 -101.633\\ | |
| 0.961182 -107.407\\ | |
| 0.962646 -117.232\\ | |
| 0.962905 -125.534\\ | |
| 0.964024 -125.534\\ | |
| 0.9646 -111.95\\ | |
| 0.966919 -103.188\\ | |
| 0.969971 -98.6192\\ | |
| 0.973022 -96.6353\\ | |
| 0.97522 -96.1802\\ | |
| 0.975586 -96.173\\ | |
| 0.976074 -96.1934\\ | |
| 0.977173 -96.3656\\ | |
| 0.979004 -97.0631\\ | |
| 0.981323 -98.8288\\ | |
| 0.983765 -102.33\\ | |
| 0.98584 -108.36\\ | |
| 0.987183 -118.546\\ | |
| nan nan\\ | |
| 0.98858 -125.534\\ | |
| 0.989014 -112.204\\ | |
| 0.991333 -103.302\\ | |
| 0.994385 -98.6881\\ | |
| 0.997437 -96.6793\\ | |
| 0.999634 -96.2091\\ | |
| 0.999878 -96.2006\\ | |
| }; | |
| \end{axis} | |
| \begin{axis}[% | |
| width=0.927\figureWidth, | |
| height=\figureHeight, | |
| at={(0\figureWidth,0\figureHeight)}, | |
| scale only axis, | |
| every outer x axis line/.append style={black}, | |
| every x tick label/.append style={font=\color{black}}, | |
| xmin= 0, | |
| xmax=0.999878, | |
| xtick={\empty}, | |
| xlabel={$\text{Normalized Frequency (}\times\pi\text{ rad/sample)}$}, | |
| every outer y axis line/.append style={black}, | |
| every y tick label/.append style={font=\color{black}}, | |
| ymin=-74.5262, | |
| ymax=3.54886, | |
| ytick={-65.5802,-52.4579,-39.3356,-26.2133,-13.091,0.0313318}, | |
| yticklabels={{ -65.58},{-52.458},{-39.336},{-26.213},{-13.091},{ 0.031}}, | |
| ylabel={Phase (radians)}, | |
| axis x line*=bottom, | |
| axis y line*=right | |
| ] | |
| \addplot [color=mycolor2,solid,forget plot] | |
| table[row sep=crcr]{% | |
| 0 0\\ | |
| 0.564819 -70.9773\\ | |
| 0.564941 -67.851\\ | |
| 0.574097 -69.0015\\ | |
| 0.574219 -65.8753\\ | |
| 0.589722 -67.8234\\ | |
| 0.589844 -64.6972\\ | |
| 0.608765 -67.0748\\ | |
| 0.608887 -63.9486\\ | |
| 0.629639 -66.5564\\ | |
| 0.629761 -63.4301\\ | |
| 0.651611 -66.1759\\ | |
| 0.651733 -63.0497\\ | |
| 0.674438 -65.9029\\ | |
| 0.674561 -62.7766\\ | |
| 0.697632 -65.6759\\ | |
| 0.697754 -62.5496\\ | |
| 0.721191 -65.4948\\ | |
| 0.721313 -62.3686\\ | |
| 0.744873 -65.3292\\ | |
| 0.744995 -62.2029\\ | |
| 0.768799 -65.1942\\ | |
| 0.768921 -62.0679\\ | |
| 0.792969 -65.0899\\ | |
| 0.793091 -61.9636\\ | |
| 0.817139 -64.9856\\ | |
| 0.817261 -61.8593\\ | |
| 0.841309 -64.8813\\ | |
| 0.841431 -61.755\\ | |
| 0.865723 -64.8076\\ | |
| 0.865845 -61.6814\\ | |
| 0.890015 -64.7186\\ | |
| 0.890137 -61.5924\\ | |
| 0.914429 -64.645\\ | |
| 0.914551 -61.5188\\ | |
| 0.938843 -64.5714\\ | |
| 0.938965 -61.4451\\ | |
| 0.963257 -64.4978\\ | |
| 0.963379 -61.3715\\ | |
| 0.987671 -64.4241\\ | |
| 0.987793 -61.2979\\ | |
| 0.999878 -62.8165\\ | |
| }; | |
| \end{axis} | |
| \end{tikzpicture}% | |
| \end{document} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment