This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
ecen_380_assignments [2015/11/30 17:45] petersen |
ecen_380_assignments [2016/05/16 10:02] (current) a_west [Chapter 1: LTI Systems] |
||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ===== ECEn 380 MATLAB Assignments ===== | + | ====== ECEn 380 MATLAB Assignments ====== |
| + | |||
| + | Welcome to the 380 section for the ECEn MATLAB wiki. For a brief refresher on MATLAB, [[ matlab_guide | look here.]] | ||
| + | |||
| + | The syntax for the problem numbers is such: | ||
| + | <code> | ||
| + | [Language][Class].[Book authors][Chapter].[Section].[Problem] | ||
| + | </code> | ||
| + | |||
| + | Thus for help on problem "MT380.UY6.8.1", for example, you can refer to section 6-8 in the textbook (page 279). | ||
| <ifauth, @admin> | <ifauth, @admin> | ||
| Line 6: | Line 15: | ||
| ^ Chapter ^ Assignments ^ Course Topic ^ MATLAB Topic ^ | ^ Chapter ^ Assignments ^ Course Topic ^ MATLAB Topic ^ | ||
| - | | Ch 1 | [[ecen_380_assignments#MT380.UY1 | MT380.UY1 ]] | Signals | | | + | | Ch 1 | [[ecen_380_assignments#Chapter 1: Signals | Signals ]] ||| |
| - | | ::: | [[ecen_380_assignments#MT380.UY1.2.1 | MT380.UY1.2.1 ]] | Signal Transformations | [[matlab_guide#Array Operations| Array Operations]],[[matlab_guide#Graph Function| plot]] ,[[matlab_guide#Annotation| Graph Annotation]] ,[[matlab_guide#Figures| Figures]] | | + | | ::: | [[ecen_380_assignments#Signal Transformations | MT380.UY1.2.1 ]] | Signal Transformations | [[matlab_guide#Array Operations| Array Operations]],[[matlab_guide#Graph Function| plot]] ,[[matlab_guide#Annotation| Graph Annotation]] ,[[matlab_guide#Figures| Figures]] | |
| - | | ::: | [[ecen_380_assignments#MT380.UY1.5.1 | MT380.UY1.5.1 ]] | Signal Power and Energy | sum (used to evaluate numerical integrals) | | + | | ::: | [[ecen_380_assignments#Signal Power and Energy | MT380.UY1.5.1 ]] | Signal Power and Energy | sum (used to evaluate numerical integrals) | |
| - | | Ch 2 | [[ecen_380_assignments#MT380.UY2 | MT380.UY2 ]] | LTI Systems | | | + | | Ch 2 | [[ecen_380_assignments#Chapter 2: LTI Systems | Linear Time-Invariant (LTI) Systems ]] ||| |
| | ::: | [[ecen_380_assignments#MT380.UY2.3.0 | MT380.UY2.3.0 ]] | Convolution Aid | | | | ::: | [[ecen_380_assignments#MT380.UY2.3.0 | MT380.UY2.3.0 ]] | Convolution Aid | | | ||
| | ::: | [[ecen_380_assignments#MT380.UY2.3.1 | MT380.UY2.3.1 ]] | Convolution with function files | [[matlab_guide#Function Files| Function Files]], [[matlab_guide#For-loop| For-loop]] | | | ::: | [[ecen_380_assignments#MT380.UY2.3.1 | MT380.UY2.3.1 ]] | Convolution with function files | [[matlab_guide#Function Files| Function Files]], [[matlab_guide#For-loop| For-loop]] | | ||
| Line 16: | Line 25: | ||
| | ::: | [[ecen_380_assignments#MT380.UY2.8.1 | MT380.UY2.8.1 ]] | Imp.Resp. of 2nd Ord LCCDEs | [[matlab_guide#Roots| Roots]] | | | ::: | [[ecen_380_assignments#MT380.UY2.8.1 | MT380.UY2.8.1 ]] | Imp.Resp. of 2nd Ord LCCDEs | [[matlab_guide#Roots| Roots]] | | ||
| | ::: | [[ecen_380_assignments#MT380.UY2.9.1 | MT380.UY2.9.1 ]] | Car Suspension | Review | | | ::: | [[ecen_380_assignments#MT380.UY2.9.1 | MT380.UY2.9.1 ]] | Car Suspension | Review | | ||
| - | | Ch 3 | [[ecen_380_assignments#MT380.UY3 | MT380.UY3 ]] | Laplace Transform | | | + | | Ch 3 | [[ecen_380_assignments#Chapter 3: Laplace Transform | Laplace Transform ]] ||| |
| | ::: | [[ecen_380_assignments#MT380.UY3.2.1 | MT380.UY3.2.1 ]] | Poles and Zeros | [[matlab_guide#Mesh| Mesh]] | | | ::: | [[ecen_380_assignments#MT380.UY3.2.1 | MT380.UY3.2.1 ]] | Poles and Zeros | [[matlab_guide#Mesh| Mesh]] | | ||
| - | | Ch 4 | [[ecen_380_assignments#MT380.UY4 | MT380.UY4 ]] | App. of the L-Transform | | | + | | Ch 4 | [[ecen_380_assignments#Chapter 4: Applications of the Laplace Transform | Applications of the Laplace Transform ]] ||| |
| | ::: | [[ecen_380_assignments#MT380.UY4.5.1 | MT380.UY4.5.1 ]] | Op-Amp Circuits | Review | | | ::: | [[ecen_380_assignments#MT380.UY4.5.1 | MT380.UY4.5.1 ]] | Op-Amp Circuits | Review | | ||
| - | | Ch 5 | [[ecen_380_assignments#MT380.UY5 | MT380.UY5 ]] | Fourier Analysis Techniques | | | + | | Ch 5 | [[ecen_380_assignments#Chapter 5: Fourier Analysis Techniques | Fourier Analysis Techniques ]] ||| |
| | ::: | [[ecen_380_assignments#MT380.UY5.4.1 | MT380.UY5.4.1 ]] | Fourier Series Coefficients | [[matlab_guide#For-loop| For-loop]] | | | ::: | [[ecen_380_assignments#MT380.UY5.4.1 | MT380.UY5.4.1 ]] | Fourier Series Coefficients | [[matlab_guide#For-loop| For-loop]] | | ||
| | ::: | [[ecen_380_assignments#MT380.UY5.12.1 | MT380.UY5.12.1 ]] | Circuit Analysis with Fourier | Review | | | ::: | [[ecen_380_assignments#MT380.UY5.12.1 | MT380.UY5.12.1 ]] | Circuit Analysis with Fourier | Review | | ||
| - | | Ch 6 | [[ecen_380_assignments#MT380.UY6 | MT380.UY6 ]] | Apps of the Fourier Trans. | | | + | | Ch 6 | [[ecen_380_assignments#Chapter 6: Applications of the Fourier Transform | Applications of the Fourier Transform ]] ||| |
| | ::: | [[ecen_380_assignments#MT380.UY6.8.1 | MT380.UY6.8.1 ]] | Butterworth Filters | Review | | | ::: | [[ecen_380_assignments#MT380.UY6.8.1 | MT380.UY6.8.1 ]] | Butterworth Filters | Review | | ||
| | ::: | [[ecen_380_assignments#MT380.UY6.12.1 | MT380.UY6.12.1 ]] | Sampling Theorem | [[matlab_guide#fopen| fopen]],[[matlab_guide#fscanf| fscanf]],[[matlab_guide#fclose| fclose]], [[matlab_guide#interp| Interpolate]],[[matlab_guide#sound| sound]] | | | ::: | [[ecen_380_assignments#MT380.UY6.12.1 | MT380.UY6.12.1 ]] | Sampling Theorem | [[matlab_guide#fopen| fopen]],[[matlab_guide#fscanf| fscanf]],[[matlab_guide#fclose| fclose]], [[matlab_guide#interp| Interpolate]],[[matlab_guide#sound| sound]] | | ||
| - | | Ch 7 | [[ecen_380_assignments#MT380.UY7 | MT380.UY7 ]] | Discrete-Time Signals and Syst | | | + | | Ch 7 | [[ecen_380_assignments#Chapter 7: Discrete-Time Signals and Systems | Discrete-Time Signals and Systems ]] ||| |
| | ::: | [[ecen_380_assignments#MT380.UY7.2.1 | MT380.UY7.2.1 ]] | D-Time Signal Functions | rat | | | ::: | [[ecen_380_assignments#MT380.UY7.2.1 | MT380.UY7.2.1 ]] | D-Time Signal Functions | rat | | ||
| | ::: | [[ecen_380_assignments#MT380.UY7.13.1 | MT380.UY7.13.1 ]] | D-Time Fourier Series | Review | | | ::: | [[ecen_380_assignments#MT380.UY7.13.1 | MT380.UY7.13.1 ]] | D-Time Fourier Series | Review | | ||
| | ::: | [[ecen_380_assignments#MT380.UY7.15.1 | MT380.UY7.15.1 ]] | Discrete Fourier Transform | Review | | | ::: | [[ecen_380_assignments#MT380.UY7.15.1 | MT380.UY7.15.1 ]] | Discrete Fourier Transform | Review | | ||
| - | | Fun APP | [[ecen_380_assignments#Music Harmonics | Music Harmonics ]] | FFT,Fourier Series Coeff | FFT Plot | + | | Extras | [[ecen_380_assignments#Music Harmonics | Music Harmonics ]] | FFT,Fourier Series Coeff | FFT Plot |
| + | ====== Chapter 1: Signals ====== | ||
| - | + | ===== Signal Transformations ===== | |
| - | ===== Signal Transformation ===== | + | |
| ==== MT380.UY1.2.1 ==== | ==== MT380.UY1.2.1 ==== | ||
| - | == Discription == | + | == Description == |
| - | <file> | + | <file | MT380.UY1.2.1.txt > |
| Signal Transformations | Signal Transformations | ||
| Line 186: | Line 195: | ||
| </ifauth> | </ifauth> | ||
| + | ====== Chapter 2: LTI Systems ====== | ||
| ===== Convolution Aid ===== | ===== Convolution Aid ===== | ||
| Line 702: | Line 712: | ||
| </ifauth> | </ifauth> | ||
| + | |||
| + | ====== Chapter 3: Laplace Transform ====== | ||
| ===== Laplace Transform Aid ===== | ===== Laplace Transform Aid ===== | ||
| Line 800: | Line 812: | ||
| </ifauth> | </ifauth> | ||
| + | |||
| + | ====== Chapter 4: Applications of the Laplace Transform ====== | ||
| ===== Op-Amp Circuits ===== | ===== Op-Amp Circuits ===== | ||
| Line 843: | Line 857: | ||
| </ifauth> | </ifauth> | ||
| + | |||
| + | ====== Chapter 5: Fourier Analysis Techniques ====== | ||
| ===== Fourier Series Coefficients ===== | ===== Fourier Series Coefficients ===== | ||
| Line 1049: | Line 1065: | ||
| </ifauth> | </ifauth> | ||
| + | ====== Chapter 6: Applications of the Fourier Transform ====== | ||
| ===== Butterworth Filters ===== | ===== Butterworth Filters ===== | ||
| Line 1439: | Line 1456: | ||
| {{:380matlab:solutions:ch6:pianos8ff.wav|}} | {{:380matlab:solutions:ch6:pianos8ff.wav|}} | ||
| + | |||
| + | ====== Chapter 7: Discrete-Time Signals and Systems ====== | ||
| ===== D-Time Signal Functions ===== | ===== D-Time Signal Functions ===== | ||
| Line 1535: | Line 1554: | ||
| </ifauth> | </ifauth> | ||
| - | + | ===== Discrete Fourier Transform ===== | |
| - | ==== MT380.UY7.15.1 | + | ==== MT380.UY7.15.1 ==== |
| <file> | <file> | ||
| Line 1552: | Line 1571: | ||
| to the windowed signal, (3) and then plot the signals. | to the windowed signal, (3) and then plot the signals. | ||
| - | a) Begin by importing the signal file, and storing its contents to a | + | a) Begin by importing the signal file (file located below), |
| + | and storing its contents to a | ||
| variable. This variable will hold the data points of the | variable. This variable will hold the data points of the | ||
| non-periodic signal. | non-periodic signal. | ||
| Line 1704: | Line 1724: | ||
| 1) Looking at the DFT mode2 plot (where you pass in the sample | 1) Looking at the DFT mode2 plot (where you pass in the sample | ||
| rate, what frequencies are in the original signal. Hint: there are only four. | rate, what frequencies are in the original signal. Hint: there are only four. | ||
| + | Remember to submit your plots and code. | ||
| </file> | </file> | ||
| + | == Signal File == | ||
| + | |||
| + | {{:380matlab:ch7:mt380_uy7_15_1_s_discretefouriertransform_signal.txt|}} | ||
| + | |||
| + | == Solution Image == | ||
| + | |||
| + | {{:380matlab:ch7:mt380_uy7_15_1_si_discretefouriertransform_solutionimage.jpg?400|}} | ||
| + | |||
| + | <ifauth @admin,@380ta> | ||
| + | |||
| + | == Signal Creation == | ||
| + | |||
| + | {{:380matlab:solutions:ch7:mt380_uy7_15_1_sc_discretefouriertransform_signalcreation.m|}} | ||
| + | |||
| + | == Solution == | ||
| + | |||
| + | DFT Function File. | ||
| + | {{:380matlab:solutions:ch7:mt380_uy7_15_1_dft.m|}} | ||
| + | |||
| + | Associated Script File | ||
| + | |||
| + | {{:380matlab:solutions:ch7:mt380_uy7_15_1_discretefouriertransform.m|}} | ||
| + | |||
| + | </ifauth> | ||
| + | ====== Extras ====== | ||
| ===== Music Harmonics ===== | ===== Music Harmonics ===== | ||
| <file> | <file> | ||