Computational Methods in Electrical Engineering

 Course Paperwork

Assignments

Homework

Homework Help

Take-Home Exams

Course Topics

Topic 0 — Course Information & Graphics

  • (PDF) – Course Introduction
  • (PDF) – Graphics for Science and Engineering

Topic 1 — Numerical Errors in Computation

  • (PDF) – Errors in Computation
  • (PDF) – Summary of Propagating Uncertainty

Topic 2 — MATLAB

Topic 3 — Linear Algebra

  • (PDF) (Video) – Review of Linear Algebra
  • (PDF) (Video) – Numerical Linear Algebra
  • (Video) – MATLAB Session – Jacobi Method
  • (Video) – Matrix Transformations
  • (Video) – Eigenvalues and Eigenvectors, Imaginary and Real

Topic 4 — Root Finding

Topic 5 — Curve Fitting and Interpolation

  • (PDF) (Video) – Introduction & Linear Regression
  • (Video) – MATLAB Session – Linear Regression
  • (PDF) (Video) – Nonlinear Regression
  • (Video) – MATLAB Session – Fitting a Gaussian using nonlinear regression
  • (PDF) (Video) – Polynomial Fitting & Interpolation
  • (Video) – MATLAB Session – Polynomial Fitting

Topic 6 — Numerical Integration and Differentiation

  • (PDF) (Video) – Numerical Integration
  • (Video) – MATLAB Session – Numerical Integration
  • (Video) – MATLAB Session – Visualizing Discrete Information
  • (PDF) (Video) – Finite Difference Approximations
  • (Video) – MATLAB Session – Deriving finite-difference approximations using Symbolic Toolbox in MATLAB
  • (PDF) (Video) – Numerical Differentiation

Topic 7 — Finite-Difference Method

Topic 8 — Optimization

  • (PDF) – Introduction to Optimization
  • (PDF) – Single Variable Optimization
  • (PDF) – Multivariable Optimization
  • (PDF) (Video) – CEM Lecture including Stochastic Optimization
  • (Animation) – Steepest Ascent with alpha = 0.5 (too large)
  • (Animation) – Steepest Ascent with alpha = 0.1 (good choice)
  • (Animation) – Steepest Ascent with alpha = 0.01 (too small)
  • (Animation) – Golden-section search

Bonus Material

  • (PDF) – Applications of Dast Fourier Transforms

Other Resources

Internet Resources

Graphics & Media Resources

  • Blender — Open source 3D modeling, animation, and photorealistic rendering.
  • Inkscape — Open source vector graphics package. Free alternative to Adobe Illustrator.
  • Gimp — Open source image editor. Free alternative to Adobe Photoshop.
  • LIbreOffice — Open source alternative to Microsoft Office.
  • GNU Octave — Open source alternative to MATLAB.

Course Resources

  • Download .zip file with MATLAB codes for this course.
    • polyfill.p — This function creates arbitrary polygons on a 2D array given the list of vertices around the perimeter of the polygon.
    • polyfill_demo.m — This MATLAB program demonstrates the use of polyfill() to create an arbitrary polygon on a 2D grid.
    • klingon.p — A MATLAB function of hostile alien origin. See Homework #4 to save the world.
    • hw6func.p — A MATLAB function used in Homework #6.
    • test_tlder.p — In Homework #10a you are required to write the MATLAB function tlder() which builds derivative matrices across a staggered 2D grid. This MATLAB program test_tlder.p calls your tlder() function hundreds of times with different input arguments to test all of the features.
    • stlder.p — This works just like tlder(), but it only generates derivative matrices for small grids. It is provided to help you troubleshoot your tlder() function by providing correct answers.
    • hw10a_checker.p — This function checks the output of your code for Homework 10a. Install it in your working MATLAB directory. Run your code and then run this.Note: The above items are protected function files and have a “.p” extension. They work just like “.m” files, but they cannot be opened to view the code inside them.