file transfer commit
BIN
lab1/LAB1 vector exercise v2.docx
Normal file
BIN
lab1/Thumbs.db
Normal file
5
lab1/init.m
Normal file
|
@ -0,0 +1,5 @@
|
|||
function init
|
||||
clc; close all;
|
||||
global fig_num
|
||||
fig_num = 1;
|
||||
end
|
328
lab1/lab1/lab1.log
Normal file
|
@ -0,0 +1,328 @@
|
|||
This is pdfTeX, Version 3.14159265-2.6-1.40.21 (TeX Live 2020/Debian) (preloaded format=pdflatex 2021.9.12) 17 SEP 2021 20:26
|
||||
entering extended mode
|
||||
restricted \write18 enabled.
|
||||
file:line:error style messages enabled.
|
||||
%&-line parsing enabled.
|
||||
**lab1.tex
|
||||
(./lab1.tex
|
||||
LaTeX2e <2020-10-01> patch level 4
|
||||
L3 programming layer <2021-01-09> xparse <2020-03-03>
|
||||
(/usr/share/texlive/texmf-dist/tex/latex/base/article.cls
|
||||
Document Class: article 2020/04/10 v1.4m Standard LaTeX document class
|
||||
(/usr/share/texlive/texmf-dist/tex/latex/base/size10.clo
|
||||
File: size10.clo 2020/04/10 v1.4m Standard LaTeX file (size option)
|
||||
)
|
||||
\c@part=\count177
|
||||
\c@section=\count178
|
||||
\c@subsection=\count179
|
||||
\c@subsubsection=\count180
|
||||
\c@paragraph=\count181
|
||||
\c@subparagraph=\count182
|
||||
\c@figure=\count183
|
||||
\c@table=\count184
|
||||
\abovecaptionskip=\skip47
|
||||
\belowcaptionskip=\skip48
|
||||
\bibindent=\dimen138
|
||||
)
|
||||
(/usr/share/texlive/texmf-dist/tex/latex/amsmath/amsmath.sty
|
||||
Package: amsmath 2020/09/23 v2.17i AMS math features
|
||||
\@mathmargin=\skip49
|
||||
|
||||
For additional information on amsmath, use the `?' option.
|
||||
(/usr/share/texlive/texmf-dist/tex/latex/amsmath/amstext.sty
|
||||
Package: amstext 2000/06/29 v2.01 AMS text
|
||||
|
||||
(/usr/share/texlive/texmf-dist/tex/latex/amsmath/amsgen.sty
|
||||
File: amsgen.sty 1999/11/30 v2.0 generic functions
|
||||
\@emptytoks=\toks15
|
||||
\ex@=\dimen139
|
||||
))
|
||||
(/usr/share/texlive/texmf-dist/tex/latex/amsmath/amsbsy.sty
|
||||
Package: amsbsy 1999/11/29 v1.2d Bold Symbols
|
||||
\pmbraise@=\dimen140
|
||||
)
|
||||
(/usr/share/texlive/texmf-dist/tex/latex/amsmath/amsopn.sty
|
||||
Package: amsopn 2016/03/08 v2.02 operator names
|
||||
)
|
||||
\inf@bad=\count185
|
||||
LaTeX Info: Redefining \frac on input line 234.
|
||||
\uproot@=\count186
|
||||
\leftroot@=\count187
|
||||
LaTeX Info: Redefining \overline on input line 399.
|
||||
\classnum@=\count188
|
||||
\DOTSCASE@=\count189
|
||||
LaTeX Info: Redefining \ldots on input line 496.
|
||||
LaTeX Info: Redefining \dots on input line 499.
|
||||
LaTeX Info: Redefining \cdots on input line 620.
|
||||
\Mathstrutbox@=\box47
|
||||
\strutbox@=\box48
|
||||
\big@size=\dimen141
|
||||
LaTeX Font Info: Redeclaring font encoding OML on input line 743.
|
||||
LaTeX Font Info: Redeclaring font encoding OMS on input line 744.
|
||||
\macc@depth=\count190
|
||||
\c@MaxMatrixCols=\count191
|
||||
\dotsspace@=\muskip16
|
||||
\c@parentequation=\count192
|
||||
\dspbrk@lvl=\count193
|
||||
\tag@help=\toks16
|
||||
\row@=\count194
|
||||
\column@=\count195
|
||||
\maxfields@=\count196
|
||||
\andhelp@=\toks17
|
||||
\eqnshift@=\dimen142
|
||||
\alignsep@=\dimen143
|
||||
\tagshift@=\dimen144
|
||||
\tagwidth@=\dimen145
|
||||
\totwidth@=\dimen146
|
||||
\lineht@=\dimen147
|
||||
\@envbody=\toks18
|
||||
\multlinegap=\skip50
|
||||
\multlinetaggap=\skip51
|
||||
\mathdisplay@stack=\toks19
|
||||
LaTeX Info: Redefining \[ on input line 2923.
|
||||
LaTeX Info: Redefining \] on input line 2924.
|
||||
)
|
||||
(/usr/share/texlive/texmf-dist/tex/latex/graphics/graphicx.sty
|
||||
Package: graphicx 2020/09/09 v1.2b Enhanced LaTeX Graphics (DPC,SPQR)
|
||||
|
||||
(/usr/share/texlive/texmf-dist/tex/latex/graphics/keyval.sty
|
||||
Package: keyval 2014/10/28 v1.15 key=value parser (DPC)
|
||||
\KV@toks@=\toks20
|
||||
)
|
||||
(/usr/share/texlive/texmf-dist/tex/latex/graphics/graphics.sty
|
||||
Package: graphics 2020/08/30 v1.4c Standard LaTeX Graphics (DPC,SPQR)
|
||||
|
||||
(/usr/share/texlive/texmf-dist/tex/latex/graphics/trig.sty
|
||||
Package: trig 2016/01/03 v1.10 sin cos tan (DPC)
|
||||
)
|
||||
(/usr/share/texlive/texmf-dist/tex/latex/graphics-cfg/graphics.cfg
|
||||
File: graphics.cfg 2016/06/04 v1.11 sample graphics configuration
|
||||
)
|
||||
Package graphics Info: Driver file: pdftex.def on input line 105.
|
||||
|
||||
(/usr/share/texlive/texmf-dist/tex/latex/graphics-def/pdftex.def
|
||||
File: pdftex.def 2020/10/05 v1.2a Graphics/color driver for pdftex
|
||||
))
|
||||
\Gin@req@height=\dimen148
|
||||
\Gin@req@width=\dimen149
|
||||
)
|
||||
(/usr/share/texlive/texmf-dist/tex/latex/cancel/cancel.sty
|
||||
Package: cancel 2013/04/12 v2.2 Cancel math terms
|
||||
)
|
||||
(/usr/share/texlive/texmf-dist/tex/latex/amsfonts/amssymb.sty
|
||||
Package: amssymb 2013/01/14 v3.01 AMS font symbols
|
||||
|
||||
(/usr/share/texlive/texmf-dist/tex/latex/amsfonts/amsfonts.sty
|
||||
Package: amsfonts 2013/01/14 v3.01 Basic AMSFonts support
|
||||
\symAMSa=\mathgroup4
|
||||
\symAMSb=\mathgroup5
|
||||
LaTeX Font Info: Redeclaring math symbol \hbar on input line 98.
|
||||
LaTeX Font Info: Overwriting math alphabet `\mathfrak' in version `bold'
|
||||
(Font) U/euf/m/n --> U/euf/b/n on input line 106.
|
||||
))
|
||||
(/usr/share/texlive/texmf-dist/tex/latex/listings/listings.sty
|
||||
\lst@mode=\count197
|
||||
\lst@gtempboxa=\box49
|
||||
\lst@token=\toks21
|
||||
\lst@length=\count198
|
||||
\lst@currlwidth=\dimen150
|
||||
\lst@column=\count199
|
||||
\lst@pos=\count266
|
||||
\lst@lostspace=\dimen151
|
||||
\lst@width=\dimen152
|
||||
\lst@newlines=\count267
|
||||
\lst@lineno=\count268
|
||||
\lst@maxwidth=\dimen153
|
||||
|
||||
(/usr/share/texlive/texmf-dist/tex/latex/listings/lstmisc.sty
|
||||
File: lstmisc.sty 2020/03/24 1.8d (Carsten Heinz)
|
||||
\c@lstnumber=\count269
|
||||
\lst@skipnumbers=\count270
|
||||
\lst@framebox=\box50
|
||||
)
|
||||
(/usr/share/texlive/texmf-dist/tex/latex/listings/listings.cfg
|
||||
File: listings.cfg 2020/03/24 1.8d listings configuration
|
||||
))
|
||||
Package: listings 2020/03/24 1.8d (Carsten Heinz)
|
||||
|
||||
(/usr/share/texlive/texmf-dist/tex/latex/enumitem/enumitem.sty
|
||||
Package: enumitem 2019/06/20 v3.9 Customized lists
|
||||
\labelindent=\skip52
|
||||
\enit@outerparindent=\dimen154
|
||||
\enit@toks=\toks22
|
||||
\enit@inbox=\box51
|
||||
\enit@count@id=\count271
|
||||
\enitdp@description=\count272
|
||||
)
|
||||
(/usr/share/texlive/texmf-dist/tex/latex/lipsum/lipsum.sty
|
||||
(/usr/share/texlive/texmf-dist/tex/latex/l3kernel/expl3.sty
|
||||
Package: expl3 2021-01-09 L3 programming layer (loader)
|
||||
|
||||
(/usr/share/texlive/texmf-dist/tex/latex/l3backend/l3backend-pdftex.def
|
||||
File: l3backend-pdftex.def 2020-01-29 L3 backend support: PDF output (pdfTeX)
|
||||
\l__color_backend_stack_int=\count273
|
||||
\l__pdf_internal_box=\box52
|
||||
))
|
||||
(/usr/share/texlive/texmf-dist/tex/latex/l3packages/xparse/xparse.sty
|
||||
Package: xparse 2020-10-27 L3 Experimental document command parser
|
||||
|
||||
(/usr/share/texlive/texmf-dist/tex/latex/l3packages/xparse/xparse-generic.tex))
|
||||
Package: lipsum 2019/01/02 v2.2 150 paragraphs of Lorem Ipsum dummy text
|
||||
(/usr/share/texlive/texmf-dist/tex/latex/lipsum/lipsum.ltd.tex
|
||||
File: lipsum.ltd.tex 2019/01/02 v2.2 The Lorem ipsum dummy text
|
||||
))
|
||||
(/usr/share/texlive/texmf-dist/tex/generic/soul/soul.sty
|
||||
Package: soul 2003/11/17 v2.4 letterspacing/underlining (mf)
|
||||
\SOUL@word=\toks23
|
||||
\SOUL@lasttoken=\toks24
|
||||
\SOUL@cmds=\toks25
|
||||
\SOUL@buffer=\toks26
|
||||
\SOUL@token=\toks27
|
||||
\SOUL@spaceskip=\skip53
|
||||
\SOUL@ttwidth=\dimen155
|
||||
\SOUL@uldp=\dimen156
|
||||
\SOUL@ulht=\dimen157
|
||||
)
|
||||
(/usr/share/texlive/texmf-dist/tex/latex/geometry/geometry.sty
|
||||
Package: geometry 2020/01/02 v5.9 Page Geometry
|
||||
|
||||
(/usr/share/texlive/texmf-dist/tex/generic/iftex/ifvtex.sty
|
||||
Package: ifvtex 2019/10/25 v1.7 ifvtex legacy package. Use iftex instead.
|
||||
|
||||
(/usr/share/texlive/texmf-dist/tex/generic/iftex/iftex.sty
|
||||
Package: iftex 2020/03/06 v1.0d TeX engine tests
|
||||
))
|
||||
\Gm@cnth=\count274
|
||||
\Gm@cntv=\count275
|
||||
\c@Gm@tempcnt=\count276
|
||||
\Gm@bindingoffset=\dimen158
|
||||
\Gm@wd@mp=\dimen159
|
||||
\Gm@odd@mp=\dimen160
|
||||
\Gm@even@mp=\dimen161
|
||||
\Gm@layoutwidth=\dimen162
|
||||
\Gm@layoutheight=\dimen163
|
||||
\Gm@layouthoffset=\dimen164
|
||||
\Gm@layoutvoffset=\dimen165
|
||||
\Gm@dimlist=\toks28
|
||||
) (./lab1.aux)
|
||||
\openout1 = `lab1.aux'.
|
||||
|
||||
LaTeX Font Info: Checking defaults for OML/cmm/m/it on input line 23.
|
||||
LaTeX Font Info: ... okay on input line 23.
|
||||
LaTeX Font Info: Checking defaults for OMS/cmsy/m/n on input line 23.
|
||||
LaTeX Font Info: ... okay on input line 23.
|
||||
LaTeX Font Info: Checking defaults for OT1/cmr/m/n on input line 23.
|
||||
LaTeX Font Info: ... okay on input line 23.
|
||||
LaTeX Font Info: Checking defaults for T1/cmr/m/n on input line 23.
|
||||
LaTeX Font Info: ... okay on input line 23.
|
||||
LaTeX Font Info: Checking defaults for TS1/cmr/m/n on input line 23.
|
||||
LaTeX Font Info: ... okay on input line 23.
|
||||
LaTeX Font Info: Checking defaults for OMX/cmex/m/n on input line 23.
|
||||
LaTeX Font Info: ... okay on input line 23.
|
||||
LaTeX Font Info: Checking defaults for U/cmr/m/n on input line 23.
|
||||
LaTeX Font Info: ... okay on input line 23.
|
||||
|
||||
(/usr/share/texlive/texmf-dist/tex/context/base/mkii/supp-pdf.mkii
|
||||
[Loading MPS to PDF converter (version 2006.09.02).]
|
||||
\scratchcounter=\count277
|
||||
\scratchdimen=\dimen166
|
||||
\scratchbox=\box53
|
||||
\nofMPsegments=\count278
|
||||
\nofMParguments=\count279
|
||||
\everyMPshowfont=\toks29
|
||||
\MPscratchCnt=\count280
|
||||
\MPscratchDim=\dimen167
|
||||
\MPnumerator=\count281
|
||||
\makeMPintoPDFobject=\count282
|
||||
\everyMPtoPDFconversion=\toks30
|
||||
) (/usr/share/texlive/texmf-dist/tex/latex/epstopdf-pkg/epstopdf-base.sty
|
||||
Package: epstopdf-base 2020-01-24 v2.11 Base part for package epstopdf
|
||||
Package epstopdf-base Info: Redefining graphics rule for `.eps' on input line 4
|
||||
85.
|
||||
|
||||
(/usr/share/texlive/texmf-dist/tex/latex/latexconfig/epstopdf-sys.cfg
|
||||
File: epstopdf-sys.cfg 2010/07/13 v1.3 Configuration of (r)epstopdf for TeX Liv
|
||||
e
|
||||
))
|
||||
\c@lstlisting=\count283
|
||||
|
||||
*geometry* driver: auto-detecting
|
||||
*geometry* detected driver: pdftex
|
||||
*geometry* verbose mode - [ preamble ] result:
|
||||
* driver: pdftex
|
||||
* paper: letterpaper
|
||||
* layout: <same size as paper>
|
||||
* layoutoffset:(h,v)=(0.0pt,0.0pt)
|
||||
* modes:
|
||||
* h-part:(L,W,R)=(72.26999pt, 469.75502pt, 72.26999pt)
|
||||
* v-part:(T,H,B)=(72.26999pt, 650.43001pt, 72.26999pt)
|
||||
* \paperwidth=614.295pt
|
||||
* \paperheight=794.96999pt
|
||||
* \textwidth=469.75502pt
|
||||
* \textheight=650.43001pt
|
||||
* \oddsidemargin=0.0pt
|
||||
* \evensidemargin=0.0pt
|
||||
* \topmargin=-37.0pt
|
||||
* \headheight=12.0pt
|
||||
* \headsep=25.0pt
|
||||
* \topskip=10.0pt
|
||||
* \footskip=30.0pt
|
||||
* \marginparwidth=65.0pt
|
||||
* \marginparsep=11.0pt
|
||||
* \columnsep=10.0pt
|
||||
* \skip\footins=9.0pt plus 4.0pt minus 2.0pt
|
||||
* \hoffset=0.0pt
|
||||
* \voffset=0.0pt
|
||||
* \mag=1000
|
||||
* \@twocolumnfalse
|
||||
* \@twosidefalse
|
||||
* \@mparswitchfalse
|
||||
* \@reversemarginfalse
|
||||
* (1in=72.27pt=25.4mm, 1cm=28.453pt)
|
||||
|
||||
LaTeX Font Info: Trying to load font information for U+msa on input line 24.
|
||||
|
||||
(/usr/share/texlive/texmf-dist/tex/latex/amsfonts/umsa.fd
|
||||
File: umsa.fd 2013/01/14 v3.01 AMS symbols A
|
||||
)
|
||||
LaTeX Font Info: Trying to load font information for U+msb on input line 24.
|
||||
|
||||
|
||||
(/usr/share/texlive/texmf-dist/tex/latex/amsfonts/umsb.fd
|
||||
File: umsb.fd 2013/01/14 v3.01 AMS symbols B
|
||||
)
|
||||
<section1.png, id=1, 1445.4pt x 724.95844pt>
|
||||
File: section1.png Graphic file (type png)
|
||||
<use section1.png>
|
||||
Package pdftex.def Info: section1.png used on input line 28.
|
||||
(pdftex.def) Requested size: 469.75502pt x 235.6087pt.
|
||||
[1
|
||||
|
||||
{/var/lib/texmf/fonts/map/pdftex/updmap/pdftex.map} <./section1.png (PNG copy)>
|
||||
]
|
||||
<section2.png, id=11, 1445.4pt x 724.95844pt>
|
||||
File: section2.png Graphic file (type png)
|
||||
<use section2.png>
|
||||
Package pdftex.def Info: section2.png used on input line 35.
|
||||
(pdftex.def) Requested size: 469.75502pt x 235.6087pt.
|
||||
[2 <./section2.png (PNG copy)>] (./lab1.aux) )
|
||||
Here is how much of TeX's memory you used:
|
||||
4967 strings out of 479304
|
||||
71848 string characters out of 5869779
|
||||
510874 words of memory out of 5000000
|
||||
22109 multiletter control sequences out of 15000+600000
|
||||
409292 words of font info for 49 fonts, out of 8000000 for 9000
|
||||
1141 hyphenation exceptions out of 8191
|
||||
68i,6n,75p,221b,263s stack positions out of 5000i,500n,10000p,200000b,80000s
|
||||
</usr/share/texlive/texmf-dist/f
|
||||
onts/type1/public/amsfonts/cm/cmbx12.pfb></usr/share/texlive/texmf-dist/fonts/t
|
||||
ype1/public/amsfonts/cm/cmr10.pfb></usr/share/texlive/texmf-dist/fonts/type1/pu
|
||||
blic/amsfonts/cm/cmr12.pfb></usr/share/texlive/texmf-dist/fonts/type1/public/am
|
||||
sfonts/cm/cmr17.pfb>
|
||||
Output written on lab1.pdf (2 pages, 96206 bytes).
|
||||
PDF statistics:
|
||||
29 PDF objects out of 1000 (max. 8388607)
|
||||
18 compressed objects within 1 object stream
|
||||
0 named destinations out of 1000 (max. 500000)
|
||||
11 words of extra memory for PDF output out of 10000 (max. 10000000)
|
||||
|
BIN
lab1/lab1/lab1.pdf
Normal file
40
lab1/lab1/lab1.tex
Normal file
|
@ -0,0 +1,40 @@
|
|||
% File: lab1.tex
|
||||
% Created: 12:59:32 Thu, 02 Sep 2021 EDT
|
||||
% Last Change: 12:59:32 Thu, 02 Sep 2021 EDT
|
||||
%
|
||||
\documentclass[letterpaper]{article}
|
||||
\usepackage{amsmath}
|
||||
\usepackage{graphicx}
|
||||
\usepackage{cancel}
|
||||
\usepackage{amssymb}
|
||||
\usepackage{listings}
|
||||
\usepackage[shortlabels]{enumitem}
|
||||
\usepackage{lipsum}
|
||||
\usepackage{soul}
|
||||
\usepackage{geometry}
|
||||
|
||||
\geometry{portrait, margin=1in}
|
||||
|
||||
\date{09/02/2021}
|
||||
\title{%
|
||||
Lab 1\\
|
||||
\large EEET-332-01:Signals, Systems, and Transforms Lab}
|
||||
\author{Blizzard MacDougall}
|
||||
\begin{document}
|
||||
\maketitle
|
||||
\pagenumbering{arabic}
|
||||
\section{Section 1}
|
||||
\begin{figure}[h!]
|
||||
\includegraphics[width=\linewidth]{section1.png}
|
||||
\caption{Shockley's Equation Plot}
|
||||
\label{fig:sect1}
|
||||
\end{figure}
|
||||
\newpage
|
||||
\section{Section 2}
|
||||
\begin{figure}[h!]
|
||||
\includegraphics[width=\linewidth]{section2.png}
|
||||
\caption{Polynomial with Roots}
|
||||
\label{fig:sect2}
|
||||
\end{figure}
|
||||
|
||||
\end{document}
|
BIN
lab1/lab1/section1.png
Normal file
After Width: | Height: | Size: 19 KiB |
BIN
lab1/lab1/section2.png
Normal file
After Width: | Height: | Size: 30 KiB |
14
lab1/make_plot.m
Normal file
|
@ -0,0 +1,14 @@
|
|||
function make_plot(x_data,y_data,graph_title,x_label,y_label,x2_data,y2_data,y2_marker)
|
||||
global fig_num;
|
||||
figure(fig_num);
|
||||
fig_num=fig_num+1;
|
||||
|
||||
plot(x_data,y_data);
|
||||
grid on;
|
||||
xlabel(x_label); ylabel(y_label);
|
||||
title(graph_title);
|
||||
if nargin==8
|
||||
hold on;
|
||||
plot(x2_data,y2_data,y2_marker);
|
||||
end
|
||||
end
|
5
lab1/section1.m
Normal file
|
@ -0,0 +1,5 @@
|
|||
init();
|
||||
Vd=0:0.02:0.8;
|
||||
Is=1e-12; n=1; Vt=0.026;
|
||||
Id=Is*(exp(Vd/(n*Vt))-1);
|
||||
make_plot(Vd,Id,"Section 1","Vd","Id")
|
BIN
lab1/section1.png
Normal file
After Width: | Height: | Size: 19 KiB |
6
lab1/section2.m
Normal file
|
@ -0,0 +1,6 @@
|
|||
init();
|
||||
x=[-15 -13 -11 -5 -2 -1 0 1 3 4]
|
||||
p=[1 15 0 -9]
|
||||
y=polyval(p,x)
|
||||
r=roots(p)
|
||||
make_plot(x,y,"Section 2b vector with Roots", "x", "y", r,[0 0 0], "*");
|
BIN
lab1/section2.png
Normal file
After Width: | Height: | Size: 30 KiB |
7
lab1/section3.m
Normal file
|
@ -0,0 +1,7 @@
|
|||
init();
|
||||
A=[1 2 3 4]
|
||||
B=[2 4 6 8]
|
||||
Btrans=B'
|
||||
C=A.*B
|
||||
Cmat=A*Btrans
|
||||
Cerror=A*B
|
5
lab1/section4.m
Normal file
|
@ -0,0 +1,5 @@
|
|||
init();
|
||||
t= 0:0.1:2*pi;
|
||||
w=4
|
||||
y=(exp(1j*(w*t))-exp(-1j*(w*t)) )/(2j)
|
||||
make_plot(t,y,"Section 4", "t", "y");
|
BIN
lab1/section4.png
Normal file
After Width: | Height: | Size: 41 KiB |
BIN
lab1/signoffSheet.jpg
Normal file
After Width: | Height: | Size: 50 KiB |
BIN
lab10/LAB10 discrete fourier transform v2.docx
Normal file
11
lab10/lab10Submission/fft_hanning_ifft.m
Normal file
|
@ -0,0 +1,11 @@
|
|||
function [m_ct,cm_ctr_win,yy]=fft_hanning_ifft(t,y,N,Mwin)
|
||||
m_ctr=-N/2:N/2+1;
|
||||
cm_ctr=fftshift(fft(y,N)/N);
|
||||
cm=fft(y,N)/N;
|
||||
make_stem(n,abs(cm_ctr),"Spectrum Amplitude","n","ab s(cm)");
|
||||
win=zeros(size(N));
|
||||
win(m_ctr)=hanning(2*Mwin+1)';
|
||||
cm_ctr_win=cm_ctr*win;
|
||||
yy=real(ifft(N*cm_ctr_win));
|
||||
make_plot(t,yy,"Reconstructed Waveform","seconds","reconstructed Y");
|
||||
end
|
8
lab10/lab10Submission/fft_ifft.m
Normal file
|
@ -0,0 +1,8 @@
|
|||
function [cm,yy]=fft_ifft(t,y,N)
|
||||
m_ctr=-N/2:N/2+1;
|
||||
cm_ctr=fftshift(fft(y,N)/N);
|
||||
cm=fft(y,N)/N;
|
||||
make_stem(n,abs(cm_ctr),"Spectrum Amplitude","n","ab s(cm)");
|
||||
yy=real(ifft(N*cm_ctr));
|
||||
make_plot(t,yy,"Reconstructed Waveform","seconds","reconstructed Y");
|
||||
end
|
98
lab10/lab10Submission/lab10Submission.tex
Normal file
|
@ -0,0 +1,98 @@
|
|||
% File: lab10Submission.tex
|
||||
% Created: 08:06:00 Thu, 18 Nov 2021 EST
|
||||
% Last Change: 08:06:00 Thu, 18 Nov 2021 EST
|
||||
%
|
||||
\documentclass[letterpaper]{article}
|
||||
\usepackage{amsmath}
|
||||
\usepackage{graphicx}
|
||||
\usepackage{cancel}
|
||||
\usepackage{amssymb}
|
||||
\usepackage{listings}
|
||||
\usepackage[shortlabels]{enumitem}
|
||||
\usepackage{soul}
|
||||
%\usepackage[smartEllipses,hashEnumerators,hybrid]{markdown}
|
||||
\usepackage{minted}
|
||||
\usepackage{geometry}
|
||||
\usepackage{dirtytalk}
|
||||
\usepackage{lplfitch}
|
||||
|
||||
\geometry{portrait, margin=1in}
|
||||
|
||||
%\begin{minted}[linenos,bgcolor=LightGray]{[language]}
|
||||
|
||||
\date{11/18/2021}
|
||||
\title{%
|
||||
Lab 10 Submission\\
|
||||
\large EEET--332--01:Signals, Systems, and Transforms}
|
||||
\author{Blizzard MacDougall}
|
||||
\begin{document}
|
||||
\maketitle
|
||||
\pagenumbering{arabic}
|
||||
\section{Section 1}
|
||||
\begin{enumerate}
|
||||
\item Calculate $T_s$ and $\omega_s$:
|
||||
\begin{equation}
|
||||
T_s=0.5625s;\ \omega_s\approx11.17
|
||||
\end{equation}
|
||||
\item Complete the table for the $t$ array:
|
||||
\begin{minted}{matlab}
|
||||
[ 0.0000 0.5625 1.1250 1.6875 2.2500 2.8125 3.3750 3.9375
|
||||
4.5000 5.0625 5.6250 6.1875 6.7500 7.3125 7.8750 8.4375]
|
||||
\end{minted}
|
||||
\item Complete the following matlab code.
|
||||
\inputminted{matlab}{section1.m}
|
||||
\item Using the spectrum amplitude and the data cursor, fill in the following blanks:
|
||||
\begin{enumerate}
|
||||
\item DC:m=0;\ $|c_m|=1.301$
|
||||
\item $1^{st}$ harmonic: m=1;\ $|c_m|=1.449$
|
||||
\item -$1^{st}$ harmonic: m=15;\ $|c_m|=1.449$
|
||||
\item $2^{nd}$ harmonic: m=2;\ $|c_m|=1.339$
|
||||
\item -$2^{nd}$ harmonic: m=14;\ $|c_m|=1.339$
|
||||
\end{enumerate}
|
||||
\item True / False : The DC value is the average value of the waveform. \hl{True}
|
||||
\newpage
|
||||
\item Repeat the previous fill-in-the-blank.
|
||||
\begin{enumerate}
|
||||
\item DC:m=0;\ $|c_m|=1.301$
|
||||
\item $1^{st}$ harmonic: m=1;\ $|c_m|=1.449$
|
||||
\item -$1^{st}$ harmonic: m=-1;\ $|c_m|=1.449$
|
||||
\item $2^{nd}$ harmonic: m=2;\ $|c_m|=1.339$
|
||||
\item -$2^{nd}$ harmonic: m=-2;\ $|c_m|=1.339$
|
||||
\end{enumerate}
|
||||
\item Repeat the same fill in the blank, using $\omega$ instead of $m$.
|
||||
\begin{enumerate}
|
||||
\item DC:$\omega=0;\ |c_m|=1.301$
|
||||
\item $1^{st}$ harmonic: $\omega=0.698132;\ |c_m|=1.449$
|
||||
\item -$1^{st}$ harmonic: $\omega=-0.698132;\ |c_m|=1.449$
|
||||
\item $2^{nd}$ harmonic: $\omega=1.39626;\ |c_m|=1.339$
|
||||
\item -$2^{nd}$ harmonic: $\omega=-1.39626;\ |c_m|=1.339$
|
||||
\end{enumerate}
|
||||
\end{enumerate}
|
||||
|
||||
\section{Section 5}
|
||||
\begin{equation}
|
||||
\begin{split}
|
||||
T_s=0.0029297\\
|
||||
f_0=\frac13\\
|
||||
f_N=56.\overline8
|
||||
\end{split}
|
||||
\end{equation}
|
||||
|
||||
This system's Nyquist frequency is much greater than the frequency of either of the input sine waves. \hl{True}
|
||||
|
||||
\begin{enumerate}
|
||||
\item What is the frequency of the $24^{th}$ harmonic?
|
||||
\begin{equation}
|
||||
24(f_0)=24*\frac13=8Hz
|
||||
\end{equation}
|
||||
\item What is m equal to at each of the spikes in the spectrum?
|
||||
\begin{minted}{matlab}
|
||||
[ -45 -24 0 24 45 ]
|
||||
\end{minted}
|
||||
\item Convert these sample numbers to frequency.
|
||||
\begin{minted}{matlab}
|
||||
[ -15Hz 8Hz DC 8Hz 15Hz ]
|
||||
\end{minted}
|
||||
\end{enumerate}
|
||||
|
||||
\end{document}
|
9
lab10/lab10Submission/prelab.m
Normal file
|
@ -0,0 +1,9 @@
|
|||
T=5;
|
||||
t=0:T/5:T;
|
||||
y1=zeros(size(t));
|
||||
y2=zeros(size(t));
|
||||
t_greater_than_2=find(t>2);
|
||||
y2(t_greater_than_2)=3*t(t_greater_than_2);
|
||||
y3=zeros(size(t));
|
||||
t_between_1_and_3=find(t>=1&t<=3);
|
||||
y3(t_between_1_and_3)=3;
|
13
lab10/lab10Submission/section1.m
Normal file
|
@ -0,0 +1,13 @@
|
|||
init();
|
||||
N=16;
|
||||
n=0:N-1;
|
||||
T=9;
|
||||
Ts=T/N;
|
||||
t=0:Ts:T-Ts;
|
||||
y=zeros(size(t));
|
||||
t_between_1_and_2=find(t>=1&t<=2);
|
||||
y(t_between_1_and_2)=-t(t_between_1_and_2);
|
||||
t_between_7_and_9=find(t>7&t<=9);
|
||||
y(t_between_7_and_9)=7t(t_between_7_and_9);
|
||||
make_plot(t,y,'Input Function','n','y');
|
||||
fft_ifft(t,n,y,N);
|
14
lab10/lab10Submission/section2.m
Normal file
|
@ -0,0 +1,14 @@
|
|||
|
||||
init();
|
||||
N=1024;
|
||||
n=0:N-1;
|
||||
T=9;
|
||||
Ts=T/N;
|
||||
t=0:Ts:T-Ts;
|
||||
y=zeros(size(t));
|
||||
t_between_1_and_2=find(t>=1&t<=2);
|
||||
y(t_between_1_and_2)=-t(t_between_1_and_2);
|
||||
t_between_7_and_8=find(t>7&t<=8);
|
||||
y(t_between_7_and_8)=sin(((2*pi)/(T*p))*t(t_between_7_and_8));
|
||||
make_plot(t,y,'Input Function','n','y');
|
||||
fft_ifft(t,n,y,N);
|
13
lab10/lab10Submission/section3.m
Normal file
|
@ -0,0 +1,13 @@
|
|||
init();
|
||||
N=16;
|
||||
M=3;
|
||||
m=-N/2:N/2-1;
|
||||
cm=2*abs(m);
|
||||
make_stem(m,cm,'Spectrum','m','cm');
|
||||
|
||||
win=zeros(size(m));
|
||||
m_between_negM_and_posM=find(m>-M&m<M);
|
||||
win(m_between_negM_and_posM)=hanning(2*M+1);
|
||||
make_stem(m,win,'Window','m','win');
|
||||
cm_win=cm.*win;
|
||||
make_stem(m,cm_win,'Windowed Spectrum','m','cm_win');
|
15
lab10/lab10Submission/section3SignOff.m
Normal file
|
@ -0,0 +1,15 @@
|
|||
|
||||
init();
|
||||
N=1024;
|
||||
n=0:N-1;
|
||||
T=9;
|
||||
Ts=T/N;
|
||||
t=0:Ts:T-Ts;
|
||||
y=zeros(size(t));
|
||||
t_between_1_and_2=find(t>=1&t<=2);
|
||||
y(t_between_1_and_2)=sin(((2*pi)/(T*p))*t(t_between_1_and_2);
|
||||
t_between_7_and_8=find(t>7&t<=8);
|
||||
y(t_between_7_and_8)=sin(((2*pi)/(T*p))*t(t_between_7_and_8));
|
||||
make_plot(t,y,'Input Function','n','y');
|
||||
Mwin=128;
|
||||
[m_ctr,cm_ctr,yy]=fft_hanning_ifft(t,n,y,N);
|
16
lab10/lab10Submission/section4.m
Normal file
|
@ -0,0 +1,16 @@
|
|||
init();
|
||||
N=1024;
|
||||
n=0:N-1;
|
||||
T=9;
|
||||
Ts=T/N;
|
||||
A=10;
|
||||
Tsine=1/2;
|
||||
t=0:Ts:T-Ts;
|
||||
y=zeros(size(t));
|
||||
t_between_1_and_2=find(t>=1&t<=2);
|
||||
y(t_between_1_and_2)=A*sin(((2*pi)/(Tsine))t(t_between_1_and_2));
|
||||
t_between_3_and_5=find(t>3&t<=5);
|
||||
y(t_between_7_and_8)=2*t(t_between_7_and_8)+6;
|
||||
make_plot(t,y,'Input Function','n','y');
|
||||
Mwin=128;
|
||||
[m_ctr,cm_ctr,yy]=fft_hanning_ifft(t,n,y,N);
|
14
lab10/lab10Submission/section5.m
Normal file
|
@ -0,0 +1,14 @@
|
|||
init();
|
||||
N=1024;
|
||||
n=0:N-1;
|
||||
T=9;
|
||||
Ts=T/N;
|
||||
A=10;
|
||||
Tsine=1/2;
|
||||
t=0:Ts:T-Ts;
|
||||
w1=8*2*pi;
|
||||
w2=15*2*pi;
|
||||
y=10+5*sin(w1*t)+16*sin(w2*t);
|
||||
make_plot(t,y,'Input Function','n','y');
|
||||
Mwin=128;
|
||||
[m_ctr,cm_ctr,yy]=fft_hanning_ifft(t,n,y,N);
|
BIN
lab10/lab10Submission/signature.jpg
Normal file
After Width: | Height: | Size: 78 KiB |
BIN
lab2/LAB2 vectors and phasors.docx
Normal file
BIN
lab2/Thumbs.db
Normal file
5
lab2/init.m
Normal file
|
@ -0,0 +1,5 @@
|
|||
function init
|
||||
clc; close all;
|
||||
global fig_num
|
||||
fig_num = 1;
|
||||
end
|
BIN
lab2/lab2/lab2.pdf
Normal file
75
lab2/lab2/lab2.tex
Normal file
|
@ -0,0 +1,75 @@
|
|||
% File: lab2.tex
|
||||
% Created: 07:55:46 Thu, 09 Sep 2021 EDT
|
||||
% Last Change: 07:55:46 Thu, 09 Sep 2021 EDT
|
||||
%
|
||||
\documentclass[letterpaper]{article}
|
||||
\usepackage{amsmath}
|
||||
\usepackage{graphicx}
|
||||
\usepackage{cancel}
|
||||
\usepackage{amssymb}
|
||||
\usepackage{listings}
|
||||
\usepackage[shortlabels]{enumitem}
|
||||
\usepackage{lipsum}
|
||||
\usepackage{soul}
|
||||
\usepackage{geometry}
|
||||
|
||||
\geometry{portrait, margin=1in}
|
||||
|
||||
\date{09/09/2021}
|
||||
\title{%
|
||||
Lab 2\\
|
||||
\large EEET-332-01:Signals, Systems, and Transforms}
|
||||
\author{Blizzard MacDougall}
|
||||
\begin{document}
|
||||
\maketitle
|
||||
\pagenumbering{arabic}
|
||||
\section{Section 1}
|
||||
\begin{lstlisting}[language=matlab]
|
||||
init()
|
||||
t=linspace(0, 4*pi, 201)
|
||||
w=0.5
|
||||
phase=-pi/3
|
||||
theta=w*t+phase;
|
||||
y=(exp(1j*theta)+exp(-1j*theta))/2;
|
||||
make_plot(t,y,"Section 1: Cosine Wave with 60 degree shift","Time (t)","Amplitude (y)")
|
||||
\end{lstlisting}
|
||||
|
||||
\section{Section 2}
|
||||
\begin{lstlisting}[language=matlab]
|
||||
init()
|
||||
x=linspace(0,10,1751)
|
||||
num=[1 0 -16];
|
||||
ynum=polyval(num,x)
|
||||
den=[1 -4]
|
||||
yden=polyval(den,x)
|
||||
y=ynum./yden
|
||||
k=find(isnan(y))
|
||||
x(k)
|
||||
y(k)=4
|
||||
make_plot(x,y,"Section 2: (x^2-16)/(x-4)","x","y")
|
||||
\end{lstlisting}
|
||||
|
||||
\section{Section 3}
|
||||
\begin{lstlisting}[language=matlab]
|
||||
init()
|
||||
t=linspace(0,20,201);
|
||||
ey=exp(-0.2.*t)
|
||||
y=ey.*cos(t)
|
||||
make_plot(t,y,"Section 3: Damping Equation")
|
||||
\end{lstlisting}
|
||||
\newpage
|
||||
\section{Section 4}
|
||||
Identify the Euler Phasor and complex $s$ variable.
|
||||
\begin{enumerate}[a)]
|
||||
\item $x(t)=4\cos(5t+60)$\\
|
||||
$\overrightarrow X=4\angle60^\circ$\\
|
||||
$s=j5$
|
||||
\item $x(t)=3\cos(2t+12)$\\
|
||||
$\overrightarrow X=3\angle12^\circ$\\
|
||||
$s=j2$\\
|
||||
\item $x(t)=\cos(t)$\\
|
||||
$\overrightarrow X=1\angle0^\circ$\\
|
||||
$s=j$
|
||||
\end{enumerate}
|
||||
|
||||
\end{document}
|
14
lab2/make_plot.m
Normal file
|
@ -0,0 +1,14 @@
|
|||
function make_plot(x_data,y_data,graph_title,x_label,y_label,x2_data,y2_data,y2_marker)
|
||||
global fig_num;
|
||||
figure(fig_num);
|
||||
fig_num=fig_num+1;
|
||||
|
||||
plot(x_data,y_data);
|
||||
grid on;
|
||||
xlabel(x_label); ylabel(y_label);
|
||||
title(graph_title);
|
||||
if nargin==8
|
||||
hold on;
|
||||
plot(x2_data,y2_data,y2_marker);
|
||||
end
|
||||
end
|
7
lab2/section1.m
Normal file
|
@ -0,0 +1,7 @@
|
|||
init()
|
||||
t=linspace(0, 4*pi, 201)
|
||||
w=0.5
|
||||
phase=-pi/3
|
||||
theta=w*t+phase;
|
||||
y=(exp(1j*theta)+exp(-1j*theta))/2;
|
||||
make_plot(t,y,"Section 1: Cosine Wave with 60 degree shift","Time (t)","Amplitude (y)")
|
BIN
lab2/section1.png
Normal file
After Width: | Height: | Size: 19 KiB |
11
lab2/section2.m
Normal file
|
@ -0,0 +1,11 @@
|
|||
init()
|
||||
x=linspace(0,10,1751)
|
||||
num=[1 0 -16];
|
||||
ynum=polyval(num,x)
|
||||
den=[1 -4]
|
||||
yden=polyval(den,x)
|
||||
y=ynum./yden
|
||||
k=find(isnan(y))
|
||||
x(k)
|
||||
y(k)=8
|
||||
make_plot(x,y,"Section 2: (x^2-16)/(x-4)","x","y")
|
BIN
lab2/section2.png
Normal file
After Width: | Height: | Size: 12 KiB |
5
lab2/section3.m
Normal file
|
@ -0,0 +1,5 @@
|
|||
init()
|
||||
t=linspace(0,20,201);
|
||||
ey=exp(-0.2.*t)
|
||||
y=ey.*cos(t)
|
||||
make_plot(t,y,"Section 3: Damping Equation","x","y")
|
BIN
lab2/section3.png
Normal file
After Width: | Height: | Size: 15 KiB |
BIN
lab2/signoffSheet.jpg
Normal file
After Width: | Height: | Size: 48 KiB |
BIN
lab3/LAB3 responses v2.docx
Normal file
BIN
lab3/Thumbs.db
Normal file
7
lab3/forced_resp_solver.m
Normal file
|
@ -0,0 +1,7 @@
|
|||
function [mag_y, theta_y]=forced_resp_solver (num,den,mag_x,theta_x,sigma,omega)
|
||||
s=sigma+(1j*omega);
|
||||
x=mag_x*exp(1j*theta_x);
|
||||
Y=(polyval(num,s)./polyval(den,s)).*x;
|
||||
mag_y=abs(Y); theta_y=angle(Y);
|
||||
disp(['Output vector Y= ' num2str(mag_y) 'e^(' num2str(theta_y) 'j)']);
|
||||
end
|
5
lab3/init.m
Normal file
|
@ -0,0 +1,5 @@
|
|||
function init
|
||||
clc; close all;
|
||||
global fig_num
|
||||
fig_num = 1;
|
||||
end
|
327
lab3/lab3Report/lab3Report.log
Normal file
|
@ -0,0 +1,327 @@
|
|||
This is pdfTeX, Version 3.14159265-2.6-1.40.21 (TeX Live 2020/Debian) (preloaded format=pdflatex 2021.9.12) 23 SEP 2021 23:16
|
||||
entering extended mode
|
||||
\write18 enabled.
|
||||
file:line:error style messages enabled.
|
||||
%&-line parsing enabled.
|
||||
**lab3Report.tex
|
||||
(./lab3Report.tex
|
||||
LaTeX2e <2020-10-01> patch level 4
|
||||
L3 programming layer <2021-01-09> xparse <2020-03-03>
|
||||
(/usr/share/texlive/texmf-dist/tex/latex/base/article.cls
|
||||
Document Class: article 2020/04/10 v1.4m Standard LaTeX document class
|
||||
(/usr/share/texlive/texmf-dist/tex/latex/base/size10.clo
|
||||
File: size10.clo 2020/04/10 v1.4m Standard LaTeX file (size option)
|
||||
)
|
||||
\c@part=\count177
|
||||
\c@section=\count178
|
||||
\c@subsection=\count179
|
||||
\c@subsubsection=\count180
|
||||
\c@paragraph=\count181
|
||||
\c@subparagraph=\count182
|
||||
\c@figure=\count183
|
||||
\c@table=\count184
|
||||
\abovecaptionskip=\skip47
|
||||
\belowcaptionskip=\skip48
|
||||
\bibindent=\dimen138
|
||||
)
|
||||
(/usr/share/texlive/texmf-dist/tex/latex/amsmath/amsmath.sty
|
||||
Package: amsmath 2020/09/23 v2.17i AMS math features
|
||||
\@mathmargin=\skip49
|
||||
|
||||
For additional information on amsmath, use the `?' option.
|
||||
(/usr/share/texlive/texmf-dist/tex/latex/amsmath/amstext.sty
|
||||
Package: amstext 2000/06/29 v2.01 AMS text
|
||||
|
||||
(/usr/share/texlive/texmf-dist/tex/latex/amsmath/amsgen.sty
|
||||
File: amsgen.sty 1999/11/30 v2.0 generic functions
|
||||
\@emptytoks=\toks15
|
||||
\ex@=\dimen139
|
||||
))
|
||||
(/usr/share/texlive/texmf-dist/tex/latex/amsmath/amsbsy.sty
|
||||
Package: amsbsy 1999/11/29 v1.2d Bold Symbols
|
||||
\pmbraise@=\dimen140
|
||||
)
|
||||
(/usr/share/texlive/texmf-dist/tex/latex/amsmath/amsopn.sty
|
||||
Package: amsopn 2016/03/08 v2.02 operator names
|
||||
)
|
||||
\inf@bad=\count185
|
||||
LaTeX Info: Redefining \frac on input line 234.
|
||||
\uproot@=\count186
|
||||
\leftroot@=\count187
|
||||
LaTeX Info: Redefining \overline on input line 399.
|
||||
\classnum@=\count188
|
||||
\DOTSCASE@=\count189
|
||||
LaTeX Info: Redefining \ldots on input line 496.
|
||||
LaTeX Info: Redefining \dots on input line 499.
|
||||
LaTeX Info: Redefining \cdots on input line 620.
|
||||
\Mathstrutbox@=\box47
|
||||
\strutbox@=\box48
|
||||
\big@size=\dimen141
|
||||
LaTeX Font Info: Redeclaring font encoding OML on input line 743.
|
||||
LaTeX Font Info: Redeclaring font encoding OMS on input line 744.
|
||||
\macc@depth=\count190
|
||||
\c@MaxMatrixCols=\count191
|
||||
\dotsspace@=\muskip16
|
||||
\c@parentequation=\count192
|
||||
\dspbrk@lvl=\count193
|
||||
\tag@help=\toks16
|
||||
\row@=\count194
|
||||
\column@=\count195
|
||||
\maxfields@=\count196
|
||||
\andhelp@=\toks17
|
||||
\eqnshift@=\dimen142
|
||||
\alignsep@=\dimen143
|
||||
\tagshift@=\dimen144
|
||||
\tagwidth@=\dimen145
|
||||
\totwidth@=\dimen146
|
||||
\lineht@=\dimen147
|
||||
\@envbody=\toks18
|
||||
\multlinegap=\skip50
|
||||
\multlinetaggap=\skip51
|
||||
\mathdisplay@stack=\toks19
|
||||
LaTeX Info: Redefining \[ on input line 2923.
|
||||
LaTeX Info: Redefining \] on input line 2924.
|
||||
)
|
||||
(/usr/share/texlive/texmf-dist/tex/latex/graphics/graphicx.sty
|
||||
Package: graphicx 2020/09/09 v1.2b Enhanced LaTeX Graphics (DPC,SPQR)
|
||||
|
||||
(/usr/share/texlive/texmf-dist/tex/latex/graphics/keyval.sty
|
||||
Package: keyval 2014/10/28 v1.15 key=value parser (DPC)
|
||||
\KV@toks@=\toks20
|
||||
)
|
||||
(/usr/share/texlive/texmf-dist/tex/latex/graphics/graphics.sty
|
||||
Package: graphics 2020/08/30 v1.4c Standard LaTeX Graphics (DPC,SPQR)
|
||||
|
||||
(/usr/share/texlive/texmf-dist/tex/latex/graphics/trig.sty
|
||||
Package: trig 2016/01/03 v1.10 sin cos tan (DPC)
|
||||
)
|
||||
(/usr/share/texlive/texmf-dist/tex/latex/graphics-cfg/graphics.cfg
|
||||
File: graphics.cfg 2016/06/04 v1.11 sample graphics configuration
|
||||
)
|
||||
Package graphics Info: Driver file: pdftex.def on input line 105.
|
||||
|
||||
(/usr/share/texlive/texmf-dist/tex/latex/graphics-def/pdftex.def
|
||||
File: pdftex.def 2020/10/05 v1.2a Graphics/color driver for pdftex
|
||||
))
|
||||
\Gin@req@height=\dimen148
|
||||
\Gin@req@width=\dimen149
|
||||
)
|
||||
(/usr/share/texlive/texmf-dist/tex/latex/cancel/cancel.sty
|
||||
Package: cancel 2013/04/12 v2.2 Cancel math terms
|
||||
)
|
||||
(/usr/share/texlive/texmf-dist/tex/latex/amsfonts/amssymb.sty
|
||||
Package: amssymb 2013/01/14 v3.01 AMS font symbols
|
||||
|
||||
(/usr/share/texlive/texmf-dist/tex/latex/amsfonts/amsfonts.sty
|
||||
Package: amsfonts 2013/01/14 v3.01 Basic AMSFonts support
|
||||
\symAMSa=\mathgroup4
|
||||
\symAMSb=\mathgroup5
|
||||
LaTeX Font Info: Redeclaring math symbol \hbar on input line 98.
|
||||
LaTeX Font Info: Overwriting math alphabet `\mathfrak' in version `bold'
|
||||
(Font) U/euf/m/n --> U/euf/b/n on input line 106.
|
||||
))
|
||||
(/usr/share/texlive/texmf-dist/tex/latex/listings/listings.sty
|
||||
\lst@mode=\count197
|
||||
\lst@gtempboxa=\box49
|
||||
\lst@token=\toks21
|
||||
\lst@length=\count198
|
||||
\lst@currlwidth=\dimen150
|
||||
\lst@column=\count199
|
||||
\lst@pos=\count266
|
||||
\lst@lostspace=\dimen151
|
||||
\lst@width=\dimen152
|
||||
\lst@newlines=\count267
|
||||
\lst@lineno=\count268
|
||||
\lst@maxwidth=\dimen153
|
||||
|
||||
(/usr/share/texlive/texmf-dist/tex/latex/listings/lstmisc.sty
|
||||
File: lstmisc.sty 2020/03/24 1.8d (Carsten Heinz)
|
||||
\c@lstnumber=\count269
|
||||
\lst@skipnumbers=\count270
|
||||
\lst@framebox=\box50
|
||||
)
|
||||
(/usr/share/texlive/texmf-dist/tex/latex/listings/listings.cfg
|
||||
File: listings.cfg 2020/03/24 1.8d listings configuration
|
||||
))
|
||||
Package: listings 2020/03/24 1.8d (Carsten Heinz)
|
||||
|
||||
(/usr/share/texlive/texmf-dist/tex/latex/enumitem/enumitem.sty
|
||||
Package: enumitem 2019/06/20 v3.9 Customized lists
|
||||
\labelindent=\skip52
|
||||
\enit@outerparindent=\dimen154
|
||||
\enit@toks=\toks22
|
||||
\enit@inbox=\box51
|
||||
\enit@count@id=\count271
|
||||
\enitdp@description=\count272
|
||||
)
|
||||
(/usr/share/texlive/texmf-dist/tex/latex/lipsum/lipsum.sty
|
||||
(/usr/share/texlive/texmf-dist/tex/latex/l3kernel/expl3.sty
|
||||
Package: expl3 2021-01-09 L3 programming layer (loader)
|
||||
|
||||
(/usr/share/texlive/texmf-dist/tex/latex/l3backend/l3backend-pdftex.def
|
||||
File: l3backend-pdftex.def 2020-01-29 L3 backend support: PDF output (pdfTeX)
|
||||
\l__color_backend_stack_int=\count273
|
||||
\l__pdf_internal_box=\box52
|
||||
))
|
||||
(/usr/share/texlive/texmf-dist/tex/latex/l3packages/xparse/xparse.sty
|
||||
Package: xparse 2020-10-27 L3 Experimental document command parser
|
||||
|
||||
(/usr/share/texlive/texmf-dist/tex/latex/l3packages/xparse/xparse-generic.tex))
|
||||
Package: lipsum 2019/01/02 v2.2 150 paragraphs of Lorem Ipsum dummy text
|
||||
(/usr/share/texlive/texmf-dist/tex/latex/lipsum/lipsum.ltd.tex
|
||||
File: lipsum.ltd.tex 2019/01/02 v2.2 The Lorem ipsum dummy text
|
||||
))
|
||||
(/usr/share/texlive/texmf-dist/tex/generic/soul/soul.sty
|
||||
Package: soul 2003/11/17 v2.4 letterspacing/underlining (mf)
|
||||
\SOUL@word=\toks23
|
||||
\SOUL@lasttoken=\toks24
|
||||
\SOUL@cmds=\toks25
|
||||
\SOUL@buffer=\toks26
|
||||
\SOUL@token=\toks27
|
||||
\SOUL@spaceskip=\skip53
|
||||
\SOUL@ttwidth=\dimen155
|
||||
\SOUL@uldp=\dimen156
|
||||
\SOUL@ulht=\dimen157
|
||||
)
|
||||
(/usr/share/texlive/texmf-dist/tex/latex/geometry/geometry.sty
|
||||
Package: geometry 2020/01/02 v5.9 Page Geometry
|
||||
|
||||
(/usr/share/texlive/texmf-dist/tex/generic/iftex/ifvtex.sty
|
||||
Package: ifvtex 2019/10/25 v1.7 ifvtex legacy package. Use iftex instead.
|
||||
|
||||
(/usr/share/texlive/texmf-dist/tex/generic/iftex/iftex.sty
|
||||
Package: iftex 2020/03/06 v1.0d TeX engine tests
|
||||
))
|
||||
\Gm@cnth=\count274
|
||||
\Gm@cntv=\count275
|
||||
\c@Gm@tempcnt=\count276
|
||||
\Gm@bindingoffset=\dimen158
|
||||
\Gm@wd@mp=\dimen159
|
||||
\Gm@odd@mp=\dimen160
|
||||
\Gm@even@mp=\dimen161
|
||||
\Gm@layoutwidth=\dimen162
|
||||
\Gm@layoutheight=\dimen163
|
||||
\Gm@layouthoffset=\dimen164
|
||||
\Gm@layoutvoffset=\dimen165
|
||||
\Gm@dimlist=\toks28
|
||||
) (./lab3Report.aux)
|
||||
\openout1 = `lab3Report.aux'.
|
||||
|
||||
LaTeX Font Info: Checking defaults for OML/cmm/m/it on input line 23.
|
||||
LaTeX Font Info: ... okay on input line 23.
|
||||
LaTeX Font Info: Checking defaults for OMS/cmsy/m/n on input line 23.
|
||||
LaTeX Font Info: ... okay on input line 23.
|
||||
LaTeX Font Info: Checking defaults for OT1/cmr/m/n on input line 23.
|
||||
LaTeX Font Info: ... okay on input line 23.
|
||||
LaTeX Font Info: Checking defaults for T1/cmr/m/n on input line 23.
|
||||
LaTeX Font Info: ... okay on input line 23.
|
||||
LaTeX Font Info: Checking defaults for TS1/cmr/m/n on input line 23.
|
||||
LaTeX Font Info: ... okay on input line 23.
|
||||
LaTeX Font Info: Checking defaults for OMX/cmex/m/n on input line 23.
|
||||
LaTeX Font Info: ... okay on input line 23.
|
||||
LaTeX Font Info: Checking defaults for U/cmr/m/n on input line 23.
|
||||
LaTeX Font Info: ... okay on input line 23.
|
||||
(/usr/share/texlive/texmf-dist/tex/context/base/mkii/supp-pdf.mkii
|
||||
[Loading MPS to PDF converter (version 2006.09.02).]
|
||||
\scratchcounter=\count277
|
||||
\scratchdimen=\dimen166
|
||||
\scratchbox=\box53
|
||||
\nofMPsegments=\count278
|
||||
\nofMParguments=\count279
|
||||
\everyMPshowfont=\toks29
|
||||
\MPscratchCnt=\count280
|
||||
\MPscratchDim=\dimen167
|
||||
\MPnumerator=\count281
|
||||
\makeMPintoPDFobject=\count282
|
||||
\everyMPtoPDFconversion=\toks30
|
||||
) (/usr/share/texlive/texmf-dist/tex/latex/epstopdf-pkg/epstopdf-base.sty
|
||||
Package: epstopdf-base 2020-01-24 v2.11 Base part for package epstopdf
|
||||
Package epstopdf-base Info: Redefining graphics rule for `.eps' on input line 4
|
||||
85.
|
||||
|
||||
(/usr/share/texlive/texmf-dist/tex/latex/latexconfig/epstopdf-sys.cfg
|
||||
File: epstopdf-sys.cfg 2010/07/13 v1.3 Configuration of (r)epstopdf for TeX Liv
|
||||
e
|
||||
))
|
||||
\c@lstlisting=\count283
|
||||
|
||||
*geometry* driver: auto-detecting
|
||||
*geometry* detected driver: pdftex
|
||||
*geometry* verbose mode - [ preamble ] result:
|
||||
* driver: pdftex
|
||||
* paper: letterpaper
|
||||
* layout: <same size as paper>
|
||||
* layoutoffset:(h,v)=(0.0pt,0.0pt)
|
||||
* modes:
|
||||
* h-part:(L,W,R)=(72.26999pt, 469.75502pt, 72.26999pt)
|
||||
* v-part:(T,H,B)=(72.26999pt, 650.43001pt, 72.26999pt)
|
||||
* \paperwidth=614.295pt
|
||||
* \paperheight=794.96999pt
|
||||
* \textwidth=469.75502pt
|
||||
* \textheight=650.43001pt
|
||||
* \oddsidemargin=0.0pt
|
||||
* \evensidemargin=0.0pt
|
||||
* \topmargin=-37.0pt
|
||||
* \headheight=12.0pt
|
||||
* \headsep=25.0pt
|
||||
* \topskip=10.0pt
|
||||
* \footskip=30.0pt
|
||||
* \marginparwidth=65.0pt
|
||||
* \marginparsep=11.0pt
|
||||
* \columnsep=10.0pt
|
||||
* \skip\footins=9.0pt plus 4.0pt minus 2.0pt
|
||||
* \hoffset=0.0pt
|
||||
* \voffset=0.0pt
|
||||
* \mag=1000
|
||||
* \@twocolumnfalse
|
||||
* \@twosidefalse
|
||||
* \@mparswitchfalse
|
||||
* \@reversemarginfalse
|
||||
* (1in=72.27pt=25.4mm, 1cm=28.453pt)
|
||||
|
||||
LaTeX Font Info: Trying to load font information for U+msa on input line 24.
|
||||
|
||||
(/usr/share/texlive/texmf-dist/tex/latex/amsfonts/umsa.fd
|
||||
File: umsa.fd 2013/01/14 v3.01 AMS symbols A
|
||||
)
|
||||
LaTeX Font Info: Trying to load font information for U+msb on input line 24.
|
||||
|
||||
|
||||
(/usr/share/texlive/texmf-dist/tex/latex/amsfonts/umsb.fd
|
||||
File: umsb.fd 2013/01/14 v3.01 AMS symbols B
|
||||
)
|
||||
<section1.png, id=1, 421.575pt x 316.18124pt>
|
||||
File: section1.png Graphic file (type png)
|
||||
<use section1.png>
|
||||
Package pdftex.def Info: section1.png used on input line 28.
|
||||
(pdftex.def) Requested size: 421.57396pt x 316.18047pt.
|
||||
[1
|
||||
|
||||
{/var/lib/texmf/fonts/map/pdftex/updmap/pdftex.map} <./section1.png (PNG copy)>
|
||||
] [2]
|
||||
(./lab3Report.aux) )
|
||||
Here is how much of TeX's memory you used:
|
||||
4972 strings out of 479304
|
||||
71975 string characters out of 5869779
|
||||
513880 words of memory out of 5000000
|
||||
22113 multiletter control sequences out of 15000+600000
|
||||
410991 words of font info for 57 fonts, out of 8000000 for 9000
|
||||
1141 hyphenation exceptions out of 8191
|
||||
68i,27n,75p,227b,326s stack positions out of 5000i,500n,10000p,200000b,80000s
|
||||
</usr/share/texlive/texmf-dist/fonts/type1/public/amsfonts/
|
||||
cm/cmbx12.pfb></usr/share/texlive/texmf-dist/fonts/type1/public/amsfonts/cm/cmm
|
||||
i10.pfb></usr/share/texlive/texmf-dist/fonts/type1/public/amsfonts/cm/cmmi7.pfb
|
||||
></usr/share/texlive/texmf-dist/fonts/type1/public/amsfonts/cm/cmr10.pfb></usr/
|
||||
share/texlive/texmf-dist/fonts/type1/public/amsfonts/cm/cmr12.pfb></usr/share/t
|
||||
exlive/texmf-dist/fonts/type1/public/amsfonts/cm/cmr17.pfb></usr/share/texlive/
|
||||
texmf-dist/fonts/type1/public/amsfonts/cm/cmr7.pfb></usr/share/texlive/texmf-di
|
||||
st/fonts/type1/public/amsfonts/cm/cmsy10.pfb></usr/share/texlive/texmf-dist/fon
|
||||
ts/type1/public/amsfonts/cm/cmsy7.pfb></usr/share/texlive/texmf-dist/fonts/type
|
||||
1/public/amsfonts/symbols/msam10.pfb>
|
||||
Output written on lab3Report.pdf (2 pages, 112228 bytes).
|
||||
PDF statistics:
|
||||
52 PDF objects out of 1000 (max. 8388607)
|
||||
36 compressed objects within 1 object stream
|
||||
0 named destinations out of 1000 (max. 500000)
|
||||
6 words of extra memory for PDF output out of 10000 (max. 10000000)
|
||||
|
BIN
lab3/lab3Report/lab3Report.pdf
Normal file
BIN
lab3/lab3Report/lab3Report.synctex.gz
Normal file
54
lab3/lab3Report/lab3Report.tex
Normal file
|
@ -0,0 +1,54 @@
|
|||
% File: lab3Report.tex
|
||||
% Created: 23:02:38 Thu, 23 Sep 2021 EDT
|
||||
% Last Change: 23:02:38 Thu, 23 Sep 2021 EDT
|
||||
%
|
||||
\documentclass[letterpaper]{article}
|
||||
\usepackage{amsmath}
|
||||
\usepackage{graphicx}
|
||||
\usepackage{cancel}
|
||||
\usepackage{amssymb}
|
||||
\usepackage{listings}
|
||||
\usepackage[shortlabels]{enumitem}
|
||||
\usepackage{lipsum}
|
||||
\usepackage{soul}
|
||||
\usepackage{geometry}
|
||||
|
||||
\geometry{portrait, margin=1in}
|
||||
|
||||
\date{09/23/2021}
|
||||
\title{%
|
||||
Lab 3 Report\\
|
||||
\large EEET-332-01:Signals, Systems, and Transforms Lab}
|
||||
\author{Blizzard MacDougall}
|
||||
\begin{document}
|
||||
\maketitle
|
||||
\pagenumbering{arabic}
|
||||
\section{Section 1}
|
||||
\begin{figure}[h!]
|
||||
\includegraphics{section1.png}
|
||||
\end{figure}
|
||||
\newpage
|
||||
\section{Section 4}
|
||||
\begin{enumerate}[a)]
|
||||
\item $x=2$
|
||||
\begin{equation}
|
||||
\begin{split}
|
||||
\overrightarrow X=2\angle0^\circ\\
|
||||
s=0\\
|
||||
\overrightarrow Y=1
|
||||
\end{split}
|
||||
\end{equation}
|
||||
|
||||
\item $x=6\cos(3t+30^\circ)$
|
||||
\begin{equation}
|
||||
\begin{split}
|
||||
\overrightarrow X=6\angle30^\circ=6e^{0.52359878j}\\
|
||||
s=3j\\
|
||||
\overrightarrow Y=0.98361e^{1.1671j}
|
||||
\end{split}
|
||||
\end{equation}
|
||||
\end{enumerate}
|
||||
|
||||
Final Equation:$y(t)=1+0.98361*\cos(3t+66.86990427)$
|
||||
|
||||
\end{document}
|
BIN
lab3/lab3Report/section1.png
Normal file
After Width: | Height: | Size: 19 KiB |
14
lab3/make_plot.m
Normal file
|
@ -0,0 +1,14 @@
|
|||
function make_plot(x_data,y_data,graph_title,x_label,y_label,x2_data,y2_data,y2_marker)
|
||||
global fig_num;
|
||||
figure(fig_num);
|
||||
fig_num=fig_num+1;
|
||||
|
||||
plot(x_data,y_data);
|
||||
grid on;
|
||||
xlabel(x_label); ylabel(y_label);
|
||||
title(graph_title);
|
||||
if nargin==8
|
||||
hold on;
|
||||
plot(x2_data,y2_data,y2_marker);
|
||||
end
|
||||
end
|
4
lab3/natural_resp_solver.m
Normal file
|
@ -0,0 +1,4 @@
|
|||
function natural_resp_solver(den);
|
||||
disp("Poles for the natural response");
|
||||
poles=roots(den)
|
||||
end
|
24
lab3/notes.txt.txt
Normal file
|
@ -0,0 +1,24 @@
|
|||
Section 1
|
||||
Output vector Y= 0.10523e^(-2.7539j)
|
||||
|
||||
Section 2
|
||||
poles =
|
||||
|
||||
-0.5000 + 0.5000i
|
||||
-0.5000 - 0.5000i
|
||||
|
||||
Section 3
|
||||
N/A
|
||||
|
||||
Section 4
|
||||
a
|
||||
X=2<0
|
||||
s=0
|
||||
Y=1
|
||||
|
||||
b
|
||||
X=6<30
|
||||
S=3j
|
||||
Y= 0.98361e^(1.1671j)
|
||||
|
||||
y(t)=1+0.98361*cos(3t+66.86990427)
|
11
lab3/section1.asv
Normal file
|
@ -0,0 +1,11 @@
|
|||
init();
|
||||
disp('Section 1 Example 1');
|
||||
sigma = 0; omega = 10;
|
||||
mag_x= 2; theta_x= 5*(pi/180);
|
||||
t=linspace(0,0.5,1000);
|
||||
x_t=mag_x*cos(omega*t+theta_x);
|
||||
make_plot(t,x_t,'Section 1 Input','t','x');
|
||||
num=[5 0]; den=[1 4 4 8];
|
||||
[mag_y, theta_y]=forced_resp_solver(num,den,mag_x,theta_x,sigma,omega)
|
||||
y_t=mag_y*cos(omega*t+theta_y);
|
||||
make_plot(t,y_t,'Section 1 Response','t','y');
|
11
lab3/section1.m
Normal file
|
@ -0,0 +1,11 @@
|
|||
init();
|
||||
disp('Section 1 Example 1');
|
||||
sigma = 0; omega = 10;
|
||||
mag_x= 2; theta_x= 5*(pi/180);
|
||||
t=linspace(0,5,1000);
|
||||
x_t=mag_x*cos(omega*t+theta_x);
|
||||
make_plot(t,x_t,'Section 1 Input','t','x');
|
||||
num=[5 0]; den=[1 4 4 8];
|
||||
[mag_y, theta_y]=forced_resp_solver(num,den,mag_x,theta_x,sigma,omega)
|
||||
y_t=mag_y*cos(omega*t+theta_y);
|
||||
make_plot(t,y_t,'Section 1 Response','t','y');
|
BIN
lab3/section1.png
Normal file
After Width: | Height: | Size: 19 KiB |
12
lab3/section2.m
Normal file
|
@ -0,0 +1,12 @@
|
|||
init();
|
||||
disp('Section 1 Example 1');
|
||||
sigma = 0; omega = 100;
|
||||
mag_x= 4; theta_x= 30*(pi/180);
|
||||
t=linspace(0,0.5,1000);
|
||||
x_t=mag_x*cos(omega*t+theta_x);
|
||||
make_plot(t,x_t,'Section 2 Input','t','x');
|
||||
num=[1]; den=[2 2 1];
|
||||
natural_resp_solver(den);
|
||||
[mag_y, theta_y]=forced_resp_solver(num,den,mag_x,theta_x,sigma,omega)
|
||||
y_t=mag_y*cos(omega*t+theta_y);
|
||||
make_plot(t,y_t,'Section 2 Response','t','y');
|
BIN
lab3/section2.png
Normal file
After Width: | Height: | Size: 21 KiB |
7
lab3/section3.m
Normal file
|
@ -0,0 +1,7 @@
|
|||
init();
|
||||
t=linspace(0,25,1000);
|
||||
num=[1];
|
||||
den=[2 -2 1];
|
||||
yi= impulse(tf(num,den),t);
|
||||
make_plot(t,yi,"Section 3: Impulse Response","t","y")
|
||||
%pzmap(tf(num,den));
|
12
lab3/section4.asv
Normal file
|
@ -0,0 +1,12 @@
|
|||
init();
|
||||
disp('Section 4 Example 1');
|
||||
sigma = 0; omega = 0;
|
||||
mag_x= 2; theta_x= %30*(pi/180);
|
||||
t=linspace(0,0.5,1000);
|
||||
x_t=mag_x*cos(omega*t+theta_x);
|
||||
make_plot(t,x_t,'Section 4 Input','t','x');
|
||||
num=[1 -2 1]; den=[1 2 16 18 2];
|
||||
natural_resp_solver(den);
|
||||
[mag_y, theta_y]=forced_resp_solver(num,den,mag_x,theta_x,sigma,omega)
|
||||
y_t=mag_y*cos(omega*t+theta_y);
|
||||
make_plot(t,y_t,'Section 4 Response','t','y');
|
12
lab3/section4.m
Normal file
|
@ -0,0 +1,12 @@
|
|||
init();
|
||||
disp('Section 4 Example 1');
|
||||
sigma = 0; omega = 3;
|
||||
mag_x= 6; theta_x= 30*(pi/180);
|
||||
t=linspace(0,0.5,1000);
|
||||
x_t=mag_x*cos(omega*t+theta_x);
|
||||
make_plot(t,x_t,'Section 4 Input','t','x');
|
||||
num=[1 -2 1]; den=[1 2 16 18 2];
|
||||
natural_resp_solver(den);
|
||||
[mag_y, theta_y]=forced_resp_solver(num,den,mag_x,theta_x,sigma,omega)
|
||||
y_t=mag_y*cos(omega*t+theta_y);
|
||||
make_plot(t,y_t,'Section 4 Response','t','y');
|
BIN
lab3/signoffSheet.jpg
Normal file
After Width: | Height: | Size: 71 KiB |
BIN
lab4/LAB4 step responses and feedback v2.docx
Normal file
BIN
lab4/Thumbs.db
Normal file
7
lab4/forced_resp_solver.m
Normal file
|
@ -0,0 +1,7 @@
|
|||
function [mag_y, theta_y]=forced_resp_solver (num,den,mag_x,theta_x,sigma,omega)
|
||||
s=sigma+(1j*omega);
|
||||
x=mag_x*exp(1j*theta_x);
|
||||
Y=(polyval(num,s)./polyval(den,s)).*x;
|
||||
mag_y=abs(Y); theta_y=angle(Y);
|
||||
disp(['Output vector Y= ' num2str(mag_y) 'e^(' num2str(theta_y) 'j)']);
|
||||
end
|
5
lab4/init.m
Normal file
|
@ -0,0 +1,5 @@
|
|||
function init
|
||||
clc; close all;
|
||||
global fig_num
|
||||
fig_num = 1;
|
||||
end
|
14
lab4/make_plot.m
Normal file
|
@ -0,0 +1,14 @@
|
|||
function make_plot(x_data,y_data,graph_title,x_label,y_label,x2_data,y2_data,y2_marker)
|
||||
global fig_num;
|
||||
figure(fig_num);
|
||||
fig_num=fig_num+1;
|
||||
|
||||
plot(x_data,y_data);
|
||||
grid on;
|
||||
xlabel(x_label); ylabel(y_label);
|
||||
title(graph_title);
|
||||
if nargin==8
|
||||
hold on;
|
||||
plot(x2_data,y2_data,y2_marker);
|
||||
end
|
||||
end
|
4
lab4/natural_resp_solver.m
Normal file
|
@ -0,0 +1,4 @@
|
|||
function natural_resp_solver(den);
|
||||
disp("Poles for the natural response");
|
||||
poles=roots(den)
|
||||
end
|
10
lab4/section1.m
Normal file
|
@ -0,0 +1,10 @@
|
|||
disp('Section 1: Finding Transfer Function');
|
||||
syms s R L C Zc Zp TF
|
||||
eqn1 = Zp==R*s*L/(R+s*L);
|
||||
Zp = solve(eqn1,Zp)
|
||||
eqn2 = Zc==1/(s*C);
|
||||
Zc = solve(eqn2,Zc)
|
||||
eqn3 = TF==Zp/(Zc+Zp);
|
||||
TF = solve(eqn3,TF)
|
||||
R=2; L=5; C=2;
|
||||
TF = subs(TF)
|
18
lab4/section2.m
Normal file
|
@ -0,0 +1,18 @@
|
|||
init();
|
||||
disp('Section 1: Finding Transfer Function');
|
||||
syms s R L C Zc Zp TF
|
||||
eqn1 = Zp==R*s*L/(R+s*L);
|
||||
Zp = solve(eqn1,Zp)
|
||||
eqn2 = Zc==1/(s*C);
|
||||
Zc = solve(eqn2,Zc)
|
||||
eqn3 = TF==Zp/(Zc+Zp);
|
||||
TF = solve(eqn3,TF)
|
||||
R=2; L=5; C=2;
|
||||
TF = subs(TF)
|
||||
[symNum,symDen]=numden(TF)
|
||||
num=sym2poly(symNum)
|
||||
den=sym2poly(symDen)
|
||||
polyTF=tf(num,den)
|
||||
[yi,t]=impulse(polyTF);
|
||||
roots(den)
|
||||
make_plot(t,yi,'Section 2 Impulse Response','t','yi');
|
BIN
lab4/section2.png
Normal file
After Width: | Height: | Size: 22 KiB |
9
lab4/section3.m
Normal file
|
@ -0,0 +1,9 @@
|
|||
init();
|
||||
disp('Section 3: Finding Transfer Function');
|
||||
syms s R L C Zc Zp TF
|
||||
eqn1 = Zp==R+L*s;
|
||||
Zp = solve(eqn1,Zp)
|
||||
eqn2 = Zc==1/(s*C);
|
||||
Zc = solve(eqn2,Zc)
|
||||
eqn3 = TF==Zc/(Zc+Zp);
|
||||
TF = solve(eqn3,TF)
|
18
lab4/section4a.m
Normal file
|
@ -0,0 +1,18 @@
|
|||
init();
|
||||
disp('Section 1: Finding Transfer Function');
|
||||
syms s R L C Zc Zp TF
|
||||
eqn1 = Zp==R+L*s;
|
||||
Zp = solve(eqn1,Zp)
|
||||
eqn2 = Zc==1/(s*C);
|
||||
Zc = solve(eqn2,Zc)
|
||||
eqn3 = TF==Zc/(Zc+Zp);
|
||||
TF = solve(eqn3,TF)
|
||||
R=1; L=1; C=1;
|
||||
TF = subs(TF)
|
||||
[symNum,symDen]=numden(TF)
|
||||
num=sym2poly(symNum)
|
||||
den=sym2poly(symDen)
|
||||
polyTF=tf(num,den)
|
||||
[yi,t]=impulse(polyTF);
|
||||
roots(den)
|
||||
make_plot(t,yi,'Section 4 Impulse Response','t','yi');
|
BIN
lab4/section4a.png
Normal file
After Width: | Height: | Size: 22 KiB |
18
lab4/section4b.m
Normal file
|
@ -0,0 +1,18 @@
|
|||
init();
|
||||
disp('Section 1: Finding Transfer Function');
|
||||
syms s R L C Zc Zp TF
|
||||
eqn1 = Zp==R+L*s;
|
||||
Zp = solve(eqn1,Zp)
|
||||
eqn2 = Zc==1/(s*C);
|
||||
Zc = solve(eqn2,Zc)
|
||||
eqn3 = TF==Zc/(Zc+Zp);
|
||||
TF = solve(eqn3,TF)
|
||||
R=2; L=1; C=1;
|
||||
TF = subs(TF)
|
||||
[symNum,symDen]=numden(TF)
|
||||
num=sym2poly(symNum)
|
||||
den=sym2poly(symDen)
|
||||
polyTF=tf(num,den)
|
||||
[yi,t]=impulse(polyTF);
|
||||
roots(den)
|
||||
make_plot(t,yi,'Section 4 Impulse Response','t','yi');
|
BIN
lab4/section4b.png
Normal file
After Width: | Height: | Size: 23 KiB |
18
lab4/section4c.m
Normal file
|
@ -0,0 +1,18 @@
|
|||
init();
|
||||
disp('Section 1: Finding Transfer Function');
|
||||
syms s R L C Zc Zp TF
|
||||
eqn1 = Zp==R+L*s;
|
||||
Zp = solve(eqn1,Zp)
|
||||
eqn2 = Zc==1/(s*C);
|
||||
Zc = solve(eqn2,Zc)
|
||||
eqn3 = TF==Zc/(Zc+Zp);
|
||||
TF = solve(eqn3,TF)
|
||||
R=4; L=1; C=1;
|
||||
TF = subs(TF)
|
||||
[symNum,symDen]=numden(TF)
|
||||
num=sym2poly(symNum)
|
||||
den=sym2poly(symDen)
|
||||
polyTF=tf(num,den)
|
||||
[yi,t]=impulse(polyTF);
|
||||
roots(den)
|
||||
make_plot(t,yi,'Section 4 Impulse Response','t','yi');
|
BIN
lab4/section4c.png
Normal file
After Width: | Height: | Size: 18 KiB |
BIN
lab4/submissionDoc/photo_2021-10-13_18-47-03.jpg
Normal file
After Width: | Height: | Size: 44 KiB |
BIN
lab4/submissionDoc/section2.png
Normal file
After Width: | Height: | Size: 22 KiB |
5
lab4/submissionDoc/submissionDoc.aux
Normal file
|
@ -0,0 +1,5 @@
|
|||
\relax
|
||||
\@writefile{toc}{\contentsline {section}{\numberline {1}Section 1}{1}{}\protected@file@percent }
|
||||
\@writefile{toc}{\contentsline {section}{\numberline {2}Section 2}{1}{}\protected@file@percent }
|
||||
\@writefile{lof}{\contentsline {figure}{\numberline {1}{\ignorespaces Impulse Response}}{1}{}\protected@file@percent }
|
||||
\gdef \@abspage@last{1}
|
329
lab4/submissionDoc/submissionDoc.log
Normal file
|
@ -0,0 +1,329 @@
|
|||
This is pdfTeX, Version 3.14159265-2.6-1.40.21 (TeX Live 2020/Debian) (preloaded format=pdflatex 2021.9.12) 13 OCT 2021 19:31
|
||||
entering extended mode
|
||||
\write18 enabled.
|
||||
file:line:error style messages enabled.
|
||||
%&-line parsing enabled.
|
||||
**submissionDoc.tex
|
||||
(./submissionDoc.tex
|
||||
LaTeX2e <2020-10-01> patch level 4
|
||||
L3 programming layer <2021-01-09> xparse <2020-03-03>
|
||||
(/usr/share/texlive/texmf-dist/tex/latex/base/article.cls
|
||||
Document Class: article 2020/04/10 v1.4m Standard LaTeX document class
|
||||
(/usr/share/texlive/texmf-dist/tex/latex/base/size10.clo
|
||||
File: size10.clo 2020/04/10 v1.4m Standard LaTeX file (size option)
|
||||
)
|
||||
\c@part=\count177
|
||||
\c@section=\count178
|
||||
\c@subsection=\count179
|
||||
\c@subsubsection=\count180
|
||||
\c@paragraph=\count181
|
||||
\c@subparagraph=\count182
|
||||
\c@figure=\count183
|
||||
\c@table=\count184
|
||||
\abovecaptionskip=\skip47
|
||||
\belowcaptionskip=\skip48
|
||||
\bibindent=\dimen138
|
||||
)
|
||||
(/usr/share/texlive/texmf-dist/tex/latex/amsmath/amsmath.sty
|
||||
Package: amsmath 2020/09/23 v2.17i AMS math features
|
||||
\@mathmargin=\skip49
|
||||
|
||||
For additional information on amsmath, use the `?' option.
|
||||
(/usr/share/texlive/texmf-dist/tex/latex/amsmath/amstext.sty
|
||||
Package: amstext 2000/06/29 v2.01 AMS text
|
||||
|
||||
(/usr/share/texlive/texmf-dist/tex/latex/amsmath/amsgen.sty
|
||||
File: amsgen.sty 1999/11/30 v2.0 generic functions
|
||||
\@emptytoks=\toks15
|
||||
\ex@=\dimen139
|
||||
))
|
||||
(/usr/share/texlive/texmf-dist/tex/latex/amsmath/amsbsy.sty
|
||||
Package: amsbsy 1999/11/29 v1.2d Bold Symbols
|
||||
\pmbraise@=\dimen140
|
||||
)
|
||||
(/usr/share/texlive/texmf-dist/tex/latex/amsmath/amsopn.sty
|
||||
Package: amsopn 2016/03/08 v2.02 operator names
|
||||
)
|
||||
\inf@bad=\count185
|
||||
LaTeX Info: Redefining \frac on input line 234.
|
||||
\uproot@=\count186
|
||||
\leftroot@=\count187
|
||||
LaTeX Info: Redefining \overline on input line 399.
|
||||
\classnum@=\count188
|
||||
\DOTSCASE@=\count189
|
||||
LaTeX Info: Redefining \ldots on input line 496.
|
||||
LaTeX Info: Redefining \dots on input line 499.
|
||||
LaTeX Info: Redefining \cdots on input line 620.
|
||||
\Mathstrutbox@=\box47
|
||||
\strutbox@=\box48
|
||||
\big@size=\dimen141
|
||||
LaTeX Font Info: Redeclaring font encoding OML on input line 743.
|
||||
LaTeX Font Info: Redeclaring font encoding OMS on input line 744.
|
||||
\macc@depth=\count190
|
||||
\c@MaxMatrixCols=\count191
|
||||
\dotsspace@=\muskip16
|
||||
\c@parentequation=\count192
|
||||
\dspbrk@lvl=\count193
|
||||
\tag@help=\toks16
|
||||
\row@=\count194
|
||||
\column@=\count195
|
||||
\maxfields@=\count196
|
||||
\andhelp@=\toks17
|
||||
\eqnshift@=\dimen142
|
||||
\alignsep@=\dimen143
|
||||
\tagshift@=\dimen144
|
||||
\tagwidth@=\dimen145
|
||||
\totwidth@=\dimen146
|
||||
\lineht@=\dimen147
|
||||
\@envbody=\toks18
|
||||
\multlinegap=\skip50
|
||||
\multlinetaggap=\skip51
|
||||
\mathdisplay@stack=\toks19
|
||||
LaTeX Info: Redefining \[ on input line 2923.
|
||||
LaTeX Info: Redefining \] on input line 2924.
|
||||
)
|
||||
(/usr/share/texlive/texmf-dist/tex/latex/graphics/graphicx.sty
|
||||
Package: graphicx 2020/09/09 v1.2b Enhanced LaTeX Graphics (DPC,SPQR)
|
||||
|
||||
(/usr/share/texlive/texmf-dist/tex/latex/graphics/keyval.sty
|
||||
Package: keyval 2014/10/28 v1.15 key=value parser (DPC)
|
||||
\KV@toks@=\toks20
|
||||
)
|
||||
(/usr/share/texlive/texmf-dist/tex/latex/graphics/graphics.sty
|
||||
Package: graphics 2020/08/30 v1.4c Standard LaTeX Graphics (DPC,SPQR)
|
||||
|
||||
(/usr/share/texlive/texmf-dist/tex/latex/graphics/trig.sty
|
||||
Package: trig 2016/01/03 v1.10 sin cos tan (DPC)
|
||||
)
|
||||
(/usr/share/texlive/texmf-dist/tex/latex/graphics-cfg/graphics.cfg
|
||||
File: graphics.cfg 2016/06/04 v1.11 sample graphics configuration
|
||||
)
|
||||
Package graphics Info: Driver file: pdftex.def on input line 105.
|
||||
|
||||
(/usr/share/texlive/texmf-dist/tex/latex/graphics-def/pdftex.def
|
||||
File: pdftex.def 2020/10/05 v1.2a Graphics/color driver for pdftex
|
||||
))
|
||||
\Gin@req@height=\dimen148
|
||||
\Gin@req@width=\dimen149
|
||||
)
|
||||
(/usr/share/texlive/texmf-dist/tex/latex/cancel/cancel.sty
|
||||
Package: cancel 2013/04/12 v2.2 Cancel math terms
|
||||
)
|
||||
(/usr/share/texlive/texmf-dist/tex/latex/amsfonts/amssymb.sty
|
||||
Package: amssymb 2013/01/14 v3.01 AMS font symbols
|
||||
|
||||
(/usr/share/texlive/texmf-dist/tex/latex/amsfonts/amsfonts.sty
|
||||
Package: amsfonts 2013/01/14 v3.01 Basic AMSFonts support
|
||||
\symAMSa=\mathgroup4
|
||||
\symAMSb=\mathgroup5
|
||||
LaTeX Font Info: Redeclaring math symbol \hbar on input line 98.
|
||||
LaTeX Font Info: Overwriting math alphabet `\mathfrak' in version `bold'
|
||||
(Font) U/euf/m/n --> U/euf/b/n on input line 106.
|
||||
))
|
||||
(/usr/share/texlive/texmf-dist/tex/latex/listings/listings.sty
|
||||
\lst@mode=\count197
|
||||
\lst@gtempboxa=\box49
|
||||
\lst@token=\toks21
|
||||
\lst@length=\count198
|
||||
\lst@currlwidth=\dimen150
|
||||
\lst@column=\count199
|
||||
\lst@pos=\count266
|
||||
\lst@lostspace=\dimen151
|
||||
\lst@width=\dimen152
|
||||
\lst@newlines=\count267
|
||||
\lst@lineno=\count268
|
||||
\lst@maxwidth=\dimen153
|
||||
|
||||
(/usr/share/texlive/texmf-dist/tex/latex/listings/lstmisc.sty
|
||||
File: lstmisc.sty 2020/03/24 1.8d (Carsten Heinz)
|
||||
\c@lstnumber=\count269
|
||||
\lst@skipnumbers=\count270
|
||||
\lst@framebox=\box50
|
||||
)
|
||||
(/usr/share/texlive/texmf-dist/tex/latex/listings/listings.cfg
|
||||
File: listings.cfg 2020/03/24 1.8d listings configuration
|
||||
))
|
||||
Package: listings 2020/03/24 1.8d (Carsten Heinz)
|
||||
|
||||
(/usr/share/texlive/texmf-dist/tex/latex/enumitem/enumitem.sty
|
||||
Package: enumitem 2019/06/20 v3.9 Customized lists
|
||||
\labelindent=\skip52
|
||||
\enit@outerparindent=\dimen154
|
||||
\enit@toks=\toks22
|
||||
\enit@inbox=\box51
|
||||
\enit@count@id=\count271
|
||||
\enitdp@description=\count272
|
||||
)
|
||||
(/usr/share/texlive/texmf-dist/tex/latex/lipsum/lipsum.sty
|
||||
(/usr/share/texlive/texmf-dist/tex/latex/l3kernel/expl3.sty
|
||||
Package: expl3 2021-01-09 L3 programming layer (loader)
|
||||
|
||||
(/usr/share/texlive/texmf-dist/tex/latex/l3backend/l3backend-pdftex.def
|
||||
File: l3backend-pdftex.def 2020-01-29 L3 backend support: PDF output (pdfTeX)
|
||||
\l__color_backend_stack_int=\count273
|
||||
\l__pdf_internal_box=\box52
|
||||
))
|
||||
(/usr/share/texlive/texmf-dist/tex/latex/l3packages/xparse/xparse.sty
|
||||
Package: xparse 2020-10-27 L3 Experimental document command parser
|
||||
|
||||
(/usr/share/texlive/texmf-dist/tex/latex/l3packages/xparse/xparse-generic.tex))
|
||||
Package: lipsum 2019/01/02 v2.2 150 paragraphs of Lorem Ipsum dummy text
|
||||
(/usr/share/texlive/texmf-dist/tex/latex/lipsum/lipsum.ltd.tex
|
||||
File: lipsum.ltd.tex 2019/01/02 v2.2 The Lorem ipsum dummy text
|
||||
))
|
||||
(/usr/share/texlive/texmf-dist/tex/generic/soul/soul.sty
|
||||
Package: soul 2003/11/17 v2.4 letterspacing/underlining (mf)
|
||||
\SOUL@word=\toks23
|
||||
\SOUL@lasttoken=\toks24
|
||||
\SOUL@cmds=\toks25
|
||||
\SOUL@buffer=\toks26
|
||||
\SOUL@token=\toks27
|
||||
\SOUL@spaceskip=\skip53
|
||||
\SOUL@ttwidth=\dimen155
|
||||
\SOUL@uldp=\dimen156
|
||||
\SOUL@ulht=\dimen157
|
||||
)
|
||||
(/usr/share/texlive/texmf-dist/tex/latex/geometry/geometry.sty
|
||||
Package: geometry 2020/01/02 v5.9 Page Geometry
|
||||
|
||||
(/usr/share/texlive/texmf-dist/tex/generic/iftex/ifvtex.sty
|
||||
Package: ifvtex 2019/10/25 v1.7 ifvtex legacy package. Use iftex instead.
|
||||
|
||||
(/usr/share/texlive/texmf-dist/tex/generic/iftex/iftex.sty
|
||||
Package: iftex 2020/03/06 v1.0d TeX engine tests
|
||||
))
|
||||
\Gm@cnth=\count274
|
||||
\Gm@cntv=\count275
|
||||
\c@Gm@tempcnt=\count276
|
||||
\Gm@bindingoffset=\dimen158
|
||||
\Gm@wd@mp=\dimen159
|
||||
\Gm@odd@mp=\dimen160
|
||||
\Gm@even@mp=\dimen161
|
||||
\Gm@layoutwidth=\dimen162
|
||||
\Gm@layoutheight=\dimen163
|
||||
\Gm@layouthoffset=\dimen164
|
||||
\Gm@layoutvoffset=\dimen165
|
||||
\Gm@dimlist=\toks28
|
||||
)
|
||||
(./submissionDoc.aux)
|
||||
\openout1 = `submissionDoc.aux'.
|
||||
|
||||
LaTeX Font Info: Checking defaults for OML/cmm/m/it on input line 23.
|
||||
LaTeX Font Info: ... okay on input line 23.
|
||||
LaTeX Font Info: Checking defaults for OMS/cmsy/m/n on input line 23.
|
||||
LaTeX Font Info: ... okay on input line 23.
|
||||
LaTeX Font Info: Checking defaults for OT1/cmr/m/n on input line 23.
|
||||
LaTeX Font Info: ... okay on input line 23.
|
||||
LaTeX Font Info: Checking defaults for T1/cmr/m/n on input line 23.
|
||||
LaTeX Font Info: ... okay on input line 23.
|
||||
LaTeX Font Info: Checking defaults for TS1/cmr/m/n on input line 23.
|
||||
LaTeX Font Info: ... okay on input line 23.
|
||||
LaTeX Font Info: Checking defaults for OMX/cmex/m/n on input line 23.
|
||||
LaTeX Font Info: ... okay on input line 23.
|
||||
LaTeX Font Info: Checking defaults for U/cmr/m/n on input line 23.
|
||||
LaTeX Font Info: ... okay on input line 23.
|
||||
|
||||
(/usr/share/texlive/texmf-dist/tex/context/base/mkii/supp-pdf.mkii
|
||||
[Loading MPS to PDF converter (version 2006.09.02).]
|
||||
\scratchcounter=\count277
|
||||
\scratchdimen=\dimen166
|
||||
\scratchbox=\box53
|
||||
\nofMPsegments=\count278
|
||||
\nofMParguments=\count279
|
||||
\everyMPshowfont=\toks29
|
||||
\MPscratchCnt=\count280
|
||||
\MPscratchDim=\dimen167
|
||||
\MPnumerator=\count281
|
||||
\makeMPintoPDFobject=\count282
|
||||
\everyMPtoPDFconversion=\toks30
|
||||
) (/usr/share/texlive/texmf-dist/tex/latex/epstopdf-pkg/epstopdf-base.sty
|
||||
Package: epstopdf-base 2020-01-24 v2.11 Base part for package epstopdf
|
||||
Package epstopdf-base Info: Redefining graphics rule for `.eps' on input line 4
|
||||
85.
|
||||
|
||||
(/usr/share/texlive/texmf-dist/tex/latex/latexconfig/epstopdf-sys.cfg
|
||||
File: epstopdf-sys.cfg 2010/07/13 v1.3 Configuration of (r)epstopdf for TeX Liv
|
||||
e
|
||||
))
|
||||
\c@lstlisting=\count283
|
||||
|
||||
*geometry* driver: auto-detecting
|
||||
*geometry* detected driver: pdftex
|
||||
*geometry* verbose mode - [ preamble ] result:
|
||||
* driver: pdftex
|
||||
* paper: letterpaper
|
||||
* layout: <same size as paper>
|
||||
* layoutoffset:(h,v)=(0.0pt,0.0pt)
|
||||
* modes:
|
||||
* h-part:(L,W,R)=(72.26999pt, 469.75502pt, 72.26999pt)
|
||||
* v-part:(T,H,B)=(72.26999pt, 650.43001pt, 72.26999pt)
|
||||
* \paperwidth=614.295pt
|
||||
* \paperheight=794.96999pt
|
||||
* \textwidth=469.75502pt
|
||||
* \textheight=650.43001pt
|
||||
* \oddsidemargin=0.0pt
|
||||
* \evensidemargin=0.0pt
|
||||
* \topmargin=-37.0pt
|
||||
* \headheight=12.0pt
|
||||
* \headsep=25.0pt
|
||||
* \topskip=10.0pt
|
||||
* \footskip=30.0pt
|
||||
* \marginparwidth=65.0pt
|
||||
* \marginparsep=11.0pt
|
||||
* \columnsep=10.0pt
|
||||
* \skip\footins=9.0pt plus 4.0pt minus 2.0pt
|
||||
* \hoffset=0.0pt
|
||||
* \voffset=0.0pt
|
||||
* \mag=1000
|
||||
* \@twocolumnfalse
|
||||
* \@twosidefalse
|
||||
* \@mparswitchfalse
|
||||
* \@reversemarginfalse
|
||||
* (1in=72.27pt=25.4mm, 1cm=28.453pt)
|
||||
|
||||
LaTeX Font Info: Trying to load font information for U+msa on input line 24.
|
||||
|
||||
(/usr/share/texlive/texmf-dist/tex/latex/amsfonts/umsa.fd
|
||||
File: umsa.fd 2013/01/14 v3.01 AMS symbols A
|
||||
)
|
||||
LaTeX Font Info: Trying to load font information for U+msb on input line 24.
|
||||
|
||||
|
||||
(/usr/share/texlive/texmf-dist/tex/latex/amsfonts/umsb.fd
|
||||
File: umsb.fd 2013/01/14 v3.01 AMS symbols B
|
||||
)
|
||||
<section2.png, id=1, 375.3222pt x 301.6068pt>
|
||||
File: section2.png Graphic file (type png)
|
||||
<use section2.png>
|
||||
Package pdftex.def Info: section2.png used on input line 39.
|
||||
(pdftex.def) Requested size: 283.26631pt x 227.62204pt.
|
||||
[1
|
||||
|
||||
{/var/lib/texmf/fonts/map/pdftex/updmap/pdftex.map} <./section2.png (PNG copy)>
|
||||
]
|
||||
(./submissionDoc.aux) )
|
||||
Here is how much of TeX's memory you used:
|
||||
4969 strings out of 479304
|
||||
71931 string characters out of 5869779
|
||||
516883 words of memory out of 5000000
|
||||
22110 multiletter control sequences out of 15000+600000
|
||||
410991 words of font info for 57 fonts, out of 8000000 for 9000
|
||||
1141 hyphenation exceptions out of 8191
|
||||
68i,26n,75p,230b,263s stack positions out of 5000i,500n,10000p,200000b,80000s
|
||||
</usr/share/texlive/texmf-dist/fonts/type1/public/amsfon
|
||||
ts/cm/cmbx12.pfb></usr/share/texlive/texmf-dist/fonts/type1/public/amsfonts/cm/
|
||||
cmmi10.pfb></usr/share/texlive/texmf-dist/fonts/type1/public/amsfonts/cm/cmmi7.
|
||||
pfb></usr/share/texlive/texmf-dist/fonts/type1/public/amsfonts/cm/cmr10.pfb></u
|
||||
sr/share/texlive/texmf-dist/fonts/type1/public/amsfonts/cm/cmr12.pfb></usr/shar
|
||||
e/texlive/texmf-dist/fonts/type1/public/amsfonts/cm/cmr17.pfb></usr/share/texli
|
||||
ve/texmf-dist/fonts/type1/public/amsfonts/cm/cmr5.pfb></usr/share/texlive/texmf
|
||||
-dist/fonts/type1/public/amsfonts/cm/cmr7.pfb></usr/share/texlive/texmf-dist/fo
|
||||
nts/type1/public/amsfonts/cm/cmsy10.pfb></usr/share/texlive/texmf-dist/fonts/ty
|
||||
pe1/public/amsfonts/latxfont/line10.pfb>
|
||||
Output written on submissionDoc.pdf (1 page, 109903 bytes).
|
||||
PDF statistics:
|
||||
49 PDF objects out of 1000 (max. 8388607)
|
||||
34 compressed objects within 1 object stream
|
||||
0 named destinations out of 1000 (max. 500000)
|
||||
6 words of extra memory for PDF output out of 10000 (max. 10000000)
|
||||
|
BIN
lab4/submissionDoc/submissionDoc.pdf
Normal file
BIN
lab4/submissionDoc/submissionDoc.synctex.gz
Normal file
46
lab4/submissionDoc/submissionDoc.tex
Normal file
|
@ -0,0 +1,46 @@
|
|||
% File: submissionDoc.tex
|
||||
% Created: 18:54:03 Wed, 13 Oct 2021 EDT
|
||||
% Last Change: 18:54:03 Wed, 13 Oct 2021 EDT
|
||||
%
|
||||
\documentclass[letterpaper]{article}
|
||||
\usepackage{amsmath}
|
||||
\usepackage{graphicx}
|
||||
\usepackage{cancel}
|
||||
\usepackage{amssymb}
|
||||
\usepackage{listings}
|
||||
\usepackage[shortlabels]{enumitem}
|
||||
\usepackage{lipsum}
|
||||
\usepackage{soul}
|
||||
\usepackage{geometry}
|
||||
|
||||
\geometry{portrait, margin=1in}
|
||||
|
||||
\date{10/13/2021}
|
||||
\title{%
|
||||
Lab 4\\
|
||||
\large EEET-332-01: Signals, Systems, and Transforms Lab}
|
||||
\author{Blizzard MacDougall}
|
||||
\begin{document}
|
||||
\maketitle
|
||||
\pagenumbering{arabic}
|
||||
\section{Section 1}
|
||||
\begin{equation}
|
||||
\begin{split}
|
||||
Z_p=\frac{RLs}{R+Ls}=\frac{10s}{2+5s}\\
|
||||
Z_t=\frac{R+Ls+RLCs^2}{Cs(R+Ls)}=\frac{20s^2+5s+2}{2s(5s+2)}\\
|
||||
\frac{V_o}{V_i}=\frac{Z_p}{Z_t}=\frac{\frac{RLs}{R+Ls}}{\frac{R+Ls+RLCs^2}{Cs(R+Ls)}}=\frac{RLs}{\cancel{R+Ls}}\times\frac{Cs\cancel{(R+Ls)}}{RLCs^2+Ls+R}\\
|
||||
\frac{V_o}{V_i}=\frac{RLCs^2}{RLCs^2+Ls+R}=\frac{20s^2}{20s^2+5s+2}
|
||||
\end{split}
|
||||
\end{equation}
|
||||
|
||||
\section{Section 2}
|
||||
\begin{figure}[h!]
|
||||
\centering
|
||||
\includegraphics[height=8cm]{section2.png}
|
||||
\caption{Impulse Response}
|
||||
\end{figure}
|
||||
Roots: $-0.125\pm0.2905i$
|
||||
|
||||
All roots are positive.
|
||||
|
||||
\end{document}
|
BIN
lab5/LAB5 HW HELP NO LAB MTG.docx
Normal file
BIN
lab6/LAB6 filters v2.docx
Normal file
7
lab6/forced_resp_solver.m
Normal file
|
@ -0,0 +1,7 @@
|
|||
function [mag_y, theta_y]=forced_resp_solver (num,den,mag_x,theta_x,sigma,omega)
|
||||
s=sigma+(1j*omega);
|
||||
x=mag_x*exp(1j*theta_x);
|
||||
Y=(polyval(num,s)./polyval(den,s)).*x;
|
||||
mag_y=abs(Y); theta_y=angle(Y);
|
||||
disp(['Output vector Y= ' num2str(mag_y) 'e^(' num2str(theta_y) 'j)']);
|
||||
end
|
5
lab6/init.m
Normal file
|
@ -0,0 +1,5 @@
|
|||
function init
|
||||
clc; close all;
|
||||
global fig_num
|
||||
fig_num = 1;
|
||||
end
|
12
lab6/init_bode.m
Normal file
|
@ -0,0 +1,12 @@
|
|||
function init_bode
|
||||
clc; close all;
|
||||
|
||||
global s
|
||||
s=tf('s');
|
||||
|
||||
global fig_num
|
||||
fig_num=1;
|
||||
|
||||
global options
|
||||
options = bodeoptions;
|
||||
end
|
12
lab6/make_bode.m
Normal file
|
@ -0,0 +1,12 @@
|
|||
function make_bode (mag_plot, phase_plot, H, log_xmin, log_xmax, ymin, ymax)
|
||||
global fig_num;
|
||||
figure(fig_num);
|
||||
fig_num = fig_num + 1;
|
||||
|
||||
global options;
|
||||
options.Ylim = [ymin ymax];
|
||||
options.MagVisible = mag_plot;
|
||||
options.PhaseVisible = phase_plot;
|
||||
w=logspace(log_xmin,log_xmax,1000);
|
||||
bode(H,options,w); grid on;
|
||||
end
|
14
lab6/make_plot.m
Normal file
|
@ -0,0 +1,14 @@
|
|||
function make_plot(x_data,y_data,graph_title,x_label,y_label,x2_data,y2_data,y2_marker)
|
||||
global fig_num;
|
||||
figure(fig_num);
|
||||
fig_num=fig_num+1;
|
||||
|
||||
plot(x_data,y_data);
|
||||
grid on;
|
||||
xlabel(x_label); ylabel(y_label);
|
||||
title(graph_title);
|
||||
if nargin==8
|
||||
hold on;
|
||||
plot(x2_data,y2_data,y2_marker);
|
||||
end
|
||||
end
|
4
lab6/natural_resp_solver.m
Normal file
|
@ -0,0 +1,4 @@
|
|||
function natural_resp_solver(den);
|
||||
disp("Poles for the natural response");
|
||||
poles=roots(den)
|
||||
end
|
10
lab6/prelab1.m
Normal file
|
@ -0,0 +1,10 @@
|
|||
init_bode{};
|
||||
|
||||
global s
|
||||
|
||||
H=4*(s+0.5)/s;
|
||||
|
||||
minreal(H)
|
||||
|
||||
make_bode('on','off',H,-2,1,0,60);
|
||||
make_bode('off','on',H,-2,1,-90,0);
|
10
lab6/prelab2.m
Normal file
|
@ -0,0 +1,10 @@
|
|||
init_bode{};
|
||||
|
||||
global s
|
||||
|
||||
H=12*(s+1.5)/(s*(s+3));
|
||||
|
||||
minreal(H)
|
||||
|
||||
make_bode('on','off',H,-2,1,0,60);
|
||||
make_bode('off','on',H,-2,1,-90,0);
|
10
lab6/prelab3.m
Normal file
|
@ -0,0 +1,10 @@
|
|||
init_bode{};
|
||||
|
||||
global s
|
||||
|
||||
H=2*(s-2)/((s+2)^2);
|
||||
|
||||
minreal(H)
|
||||
|
||||
make_bode('on','off',H,-2,1,0,60);
|
||||
make_bode('off','on',H,-2,1,-90,0);
|
12
lab6/section3.m
Normal file
|
@ -0,0 +1,12 @@
|
|||
init_bode();
|
||||
|
||||
global s
|
||||
|
||||
p =(s);
|
||||
|
||||
H=((1.414)/(p^2+0.6265*p+1.1424))*((0.6265)/(p+0.6265));
|
||||
|
||||
minreal(H)
|
||||
|
||||
make_bode('on','off',H,2,6,-40,5);
|
||||
make_bode('off','on',H,2,6,-180,0);
|
BIN
lab6/section3a.png
Normal file
After Width: | Height: | Size: 92 KiB |
12
lab6/section4.m
Normal file
|
@ -0,0 +1,12 @@
|
|||
init_bode();
|
||||
|
||||
global s
|
||||
|
||||
p = (s)/(2*pi()*10000);
|
||||
|
||||
H=((1.1424)/((p^2)+(0.6265*p)+1.1424))*((0.6265)/(p+0.6265));
|
||||
|
||||
minreal(H)
|
||||
|
||||
make_bode('on','off',H,2,6,-40,5);
|
||||
make_bode('off','on',H,2,6,-180,0);
|