Engineering Homework Help

Engineering Homework Help. EE 4490 Kennesaw State University Matlab Exercises

 

Tutorial Set 1: Getting Started with Matlab, Create 2D/3D Plots, Import Data into Matlab, and Optimization

1. Getting Started with Matlab
https://www.mathworks.com/videos/getting-started-with-matlab-68985.html

2. Matlab Tips & Tricks
https://www.mathworks.com/support/search.html/videos/matlab-and-simulink-racing-lounge-how-to-make-your-matlab-experience-more-productive-99548.html?q=&fq=asset_type_name:video%20category:support/automotiv1206&page=1

3. How to Use Basic Plotting Function
https://www.mathworks.com/support/search.html/videos/using-basic-plotting-functions-69018.html

4. 3D Plotting in Matlab
https://www.youtube.com/watch?v=OUwfE_-tcfo
(Also learn how to generate the Matlab logo towards the end of the video.)

5. Importing Excel data and reading (and graphing) it in Matlab

For this part of the Matlab tutorial, you have several options for your Excel data file.

  • Search online for Excel data file to import into Matlab
  • Use Excel data from your other classes
  • Create your own random Excel data file

Because your data file will be not be the same as the ones in the tutorial videos, there are some steps which you can follow and some that you cannot, due to the nature of the data, and the results and graphs will look different from those in the tutorial videos. Follow the steps that you can, and skip the ones you cannot.

Goal: The goal of this exercise is to learn how to import data into Matlab for processing and graphing.

How to Import Excel Data into Matlab
https://www.mathworks.com/videos/getting-started-from-excel-97477.html

Reading Excel Data into Matlab with a GUI (graphical user interface) (Part 1-4)

  1. https://www.mathworks.com/videos/reading-excel-data-into-matlab-with-a-gui-part-1-98224.html
  2. https://www.mathworks.com/videos/reading-excel-data-into-matlab-with-a-gui-part-2-98225.html
  3. https://www.mathworks.com/videos/reading-excel-data-into-matlab-with-a-gui-part-3-98226.html
  4. https://www.mathworks.com/videos/reading-excel-data-into-matlab-with-a-gui-part-4-97484.html

6. Tips and Tricks: Getting Started Using Optimization with MATLAB
https://www.mathworks.com/support/search.html/videos/tips-and-tricks-getting-started-using-optimization-with-matlab-81594.html?q=&fq=asset_type_name:video%20category:matlab/optimization&page=1

There is a downloadable file which contain the matlab script files for the functions listed below:

For the homework, follow along the video and turn in screenshots of your Matlab workspace screen showing the function that has been run, along with the resulting output (data, numbers, graphs, etc.) for the following functions:

VEOptimization
rosenbrock
rosenbrockGrad
GlobalOptimScript
peaksCon
RunThermistorExample (.mat files are included in the downloadable zip file),

Below is an example of a screenshot of a function that was run in Matlab. It shows the directory path on the top, the files on the left, and the variables and data created on the right. Be sure to also include resulting graphs.


What to upload to the Assignment folder:

  1. Matlab code Upload Matlab files (.m file) that contains your code
  2. Report
  • Basic information: Name, Date, Course Name/number, etc.
  • Figures of Matlab results
  • screenshots of the Matlab code run on your computer, showing the Matlab workspace
  • Detailed description for figures

Engineering Homework Help