1 / 10

Getting started 2D-Plots Matrix & Linear Equations

Lecture 4. Matlab Basics. Getting started 2D-Plots Matrix & Linear Equations. Getting Started. Matlab program can be found at: apps.asu.edu. Getting Started. Tutorials and demos can be found at http://www.mathworks.com/products/matlab/demos.html?show=demo.

Download Presentation

Getting started 2D-Plots Matrix & Linear Equations

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Lecture 4. Matlab Basics Getting started 2D-Plots Matrix & Linear Equations

  2. Getting Started • Matlab program can be found at: apps.asu.edu.

  3. Getting Started • Tutorials and demos can be found at http://www.mathworks.com/products/matlab/demos.html?show=demo • Getting Started with MATLAB (4 min 58 sec)  • Working in The Development Environment (4 min 13 sec)  • Writing a MATLAB Program (5 min 36 sec) 

  4. 2D Plots • Tutorials and demos for 2D plots can be found at http://www.mathworks.com/products/matlab/demos.html?file=/products/demos/shipping/matlab/graf2d.html

  5. Matrix and Linear Equations • Linear Equations (n-variables and m-equations) ….. • Matrix representation Ax=b

  6. Matrix and Linear Equations Ax=b • Matrix representation: x=A-1b • Solution: • Matlab representation x=b/A

  7. Matrix and Linear Equations • An example • Solve the problem with Matlab Step 1 >> A=[-2 1 3;1 1 0; 0 3 -1] Step 2 >> b=[0;1.5;0] Step 3 >> i=b/A

  8. Matrix and Linear Equations • What if • Solve the problem with Matlab Step 1 >> A=[-2 1 3;1 1 0; 0 3 -1] Step 2 >> b=[0;1.5;0] Step 3 >> i=b/A Step 3 Multiply the results by is

  9. Matrix and Linear Equations • What if the same BUT • Using the superposition principle!

  10. Matrix and Linear Equations • Re-write the equation as and Solve one at a time and add the results according to

More Related