Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống
1
/ 46 trang
THÔNG TIN TÀI LIỆU
Thông tin cơ bản
Định dạng
Số trang
46
Dung lượng
1,18 MB
Nội dung
MATLAB WORKSHOP MATLAB WORKSHOP MATLAB WORKSHOP MATLAB WORKSHOP • FOR EE 327 FOR EE 327 • MWF 8:00-850 AM MWF 8:00-850 AM • August 26-30, August 26-30, 2002 2002 Dr. Ali A. Jalali Dr. Ali A. Jalali ABOUT WORKSHOP ABOUT WORKSHOP ABOUT WORKSHOP ABOUT WORKSHOP Mainly this workshop is designed for EE 327, Signals and Systems 1 course. But it could be used by any other faculty and students who are interested to learn MATLAB Mainly this workshop is designed for EE 327, Signals and Systems 1 course. But it could be used by any other faculty and students who are interested to learn MATLAB ABOUT WORKSHOP ABOUT WORKSHOP ABOUT WORKSHOP ABOUT WORKSHOP This workshop is available as a supplement to the textbook Contemporary Linear Systems Using MATLAB by Robert D. Strum and Donald E. Kirk. This is the main textbook for EE 327 in fall 2002. The workshop covers basic MATLAB commands that are used in introductory signals and systems analysis. It is meant to serve as a quick way to learn MATLAB and a quick reference to the commands that are used in this textbook. This workshop is available as a supplement to the textbook Contemporary Linear Systems Using MATLAB by Robert D. Strum and Donald E. Kirk. This is the main textbook for EE 327 in fall 2002. The workshop covers basic MATLAB commands that are used in introductory signals and systems analysis. It is meant to serve as a quick way to learn MATLAB and a quick reference to the commands that are used in this textbook. ABOUT WORKSHOP ABOUT WORKSHOP ABOUT WORKSHOP ABOUT WORKSHOP In this workshop you will learn a few of the basic functions of MATLAB. First we will start working with basic numbers, formats, demos, mathematical functions, setting variables, matrices and generating plots by using the plot functions. Brief overview of how to generate scripts in MATLAB called M-files. In this workshop you will learn a few of the basic functions of MATLAB. First we will start working with basic numbers, formats, demos, mathematical functions, setting variables, matrices and generating plots by using the plot functions. Brief overview of how to generate scripts in MATLAB called M-files. ABOUT WORKSHOP ABOUT WORKSHOP ABOUT WORKSHOP ABOUT WORKSHOP The workshop is designed for students using either the professional version of MATLAB with the Control Systems Toolbox and the Signal Processing Toolbox, or using the Student Edition of MATLAB. For latest version of MATLAB at the time and more information on MATLAB, contact The Mathworks, Inc. www.mathworks.com The workshop is designed for students using either the professional version of MATLAB with the Control Systems Toolbox and the Signal Processing Toolbox, or using the Student Edition of MATLAB. For latest version of MATLAB at the time and more information on MATLAB, contact The Mathworks, Inc. www.mathworks.com MATLAB WORKSHOP MATLAB WORKSHOP MATLAB WORKSHOP MATLAB WORKSHOP WORKSHOP WORKSHOP WebPages WebPages www.csee.wvu.edu/~jal www.csee.wvu.edu/~jal ali ali MATLAB WORKSHOP MATLAB WORKSHOP MATLAB WORKSHOP MATLAB WORKSHOP Lecture # 1 Lecture # 1 Monday August 26 Monday August 26 • Introduction Introduction • MATLAB Demos MATLAB Demos • MATLAB Basics MATLAB Basics Lecture # 2 Lecture # 2 Wednesday August 28 Wednesday August 28 • MATLAB Basics MATLAB Basics • MATLAB Plots MATLAB Plots • MATLAB Examples MATLAB Examples Lecture # 3 Lecture # 3 Friday August 30 Friday August 30 • MATLAB Fundation MATLAB Fundation • Textbook Examples Textbook Examples • Short Quiz Short Quiz MATLAB WORKSHOP MATLAB WORKSHOP MATLAB WORKSHOP MATLAB WORKSHOP Lecture # 1 Lecture # 1 Monday August 26 Monday August 26 • Introduction Introduction • MATLAB Demos MATLAB Demos • MATLAB Basics MATLAB Basics MATLAB Introduction MATLAB Introduction MATLAB Introduction MATLAB Introduction MATLAB is both computer programming language and software environment for using that language effectively. MATLAB is matrix-oriented, so what would take several statements in C or Fortran can usually be accomplished in just a few lines using MATLAB's built-in matrix and vector operations MATLAB is both computer programming language and software environment for using that language effectively. MATLAB is matrix-oriented, so what would take several statements in C or Fortran can usually be accomplished in just a few lines using MATLAB's built-in matrix and vector operations MATLAB Introduction MATLAB Introduction MATLAB Introduction MATLAB Introduction FORTRAN: FORTRAN: real*8 A(10,10), B(10,10), C(10,10) real*8 A(10,10), B(10,10), C(10,10) do i=1,10 do i=1,10 do j=1,10 do j=1,10 C(i,j) = A(i,j) + B(i,j) C(i,j) = A(i,j) + B(i,j) 10 continue 10 continue 20 continue 20 continue MATLAB: MATLAB: C = A + B C = A + B FORTRAN: FORTRAN: real*8 A(10,10), B(10,10), C(10,10) real*8 A(10,10), B(10,10), C(10,10) do i=1,10 do i=1,10 do j=1,10 do j=1,10 C(i,j) = A(i,j) + B(i,j) C(i,j) = A(i,j) + B(i,j) 10 continue 10 continue 20 continue 20 continue MATLAB: MATLAB: C = A + B C = A + B [...]... toolboxes! More than 60 toolboxes! MATLAB Introduction MATLAB Introduction •• In Windows In Windows systems systems MATLAB is MATLAB is started by started by double-clicking double-clicking the mouse on the mouse on the appropriate the appropriate icon icon MATLAB Command Window File Edit View View View Web Help MATLAB Introduction MATLAB Introduction MATLAB includes hundreds MATLAB includes hundreds of... value MATLAB Demos MATLAB Demos •• Demonstrations are Demonstrations are invaluable since they invaluable since they give an indication of give an indication of the MATLAB the MATLAB capabilities capabilities •• A comprehensive set A comprehensive set are available by are available by typing the command typing the command >>demo in MATLAB >>demo in MATLAB prompt prompt MATLAB Demos MATLAB Demos MATLAB. . .MATLAB Introduction MATLAB Introduction MATLAB is available MATLAB is available for MS Windows, for MS Windows, Macintosh personal Macintosh personal computer, Unix and computer, Unix and other operating other operating systems systems MATLAB Introduction MATLAB Introduction MATLAB, which stands for MATLAB, which stands for MATrix LABoratory, is a MATrix... scientific and engireeng scientific and engireeng calculations calculations MATLAB Introduction MATLAB Introduction MATLAB is a "HighMATLAB is a "HighPerformance Numeric Performance Numeric Computation and Computation and Visualization Software" Visualization Software" package package MATLAB Introduction MATLAB Introduction MATLAB is an MATLAB is an interactive system interactive system whose basic data is... Colomap, Axis and Axis and MATLAB Demos MATLAB Demos MATLAB has remarkable graphics MATLAB has remarkable graphics capacities, gallery is one of them: capacities, gallery is one of them: •• The Gallery is a place to hang particularly The Gallery is a place to hang particularly elegant examples of graphics visualization elegant examples of graphics visualization in MATLAB in MATLAB •• Knot, Knot, •• Quiver,... MATLAB Demos MATLAB has remarkable MATLAB has remarkable graphics capacities: graphics capacities: •• •• •• •• •• 2-D and 3-D plots, 2-D and 3-D plots, Line plotting, Line plotting, 3-D surface plot, 3-D surface plot, Splash screen plot, Splash screen plot, Plot of complex functions and Plot of complex functions and MATLAB Demos MATLAB Demos MATLAB has remarkable graphics MATLAB has remarkable graphics... scalars, MATLAB works with scalars, vectors and matrices: vectors and matrices: •• •• •• •• •• Basic matrix operations, Basic matrix operations, Inverses of matrices, Inverses of matrices, Graphs of matrices, Graphs of matrices, Matrix manipulation, Matrix manipulation, Programming, application Programming, application development, and GUI design development, and GUI design MATLAB Demos MATLAB Demos MATLAB. .. interactive system whose basic data is a whose basic data is a matrix that does not matrix that does not require dimensioning require dimensioning MATLAB Introduction MATLAB Introduction •• •• •• •• •• •• •• •• •• •• •• MATLAB supports many types of graph and surface MATLAB supports many types of graph and surface plots: plots: line plots (x vs y), line plots (x vs y), filled plots, filled plots, bar charts,... plots, log axis plots, surface plots, surface plots, parametric plots in 3 dimensions and spherical parametric plots in 3 dimensions and spherical plots plots MATLAB Introduction MATLAB Introduction •• MATLAB has a number of add-on software modules, MATLAB has a number of add-on software modules, called toolbox ,,that perform more specialized called toolbox that perform more specialized computations computations . MATLAB WORKSHOP MATLAB WORKSHOP MATLAB WORKSHOP MATLAB WORKSHOP WORKSHOP WORKSHOP WebPages WebPages www.csee.wvu.edu/~jal www.csee.wvu.edu/~jal ali ali MATLAB WORKSHOP MATLAB WORKSHOP MATLAB. MATLAB WORKSHOP MATLAB WORKSHOP MATLAB WORKSHOP MATLAB WORKSHOP Lecture # 1 Lecture # 1 Monday August 26 Monday August 26 • Introduction Introduction • MATLAB Demos MATLAB Demos • MATLAB. WORKSHOP MATLAB WORKSHOP MATLAB WORKSHOP Lecture # 1 Lecture # 1 Monday August 26 Monday August 26 • Introduction Introduction • MATLAB Demos MATLAB Demos • MATLAB Basics MATLAB Basics Lecture # 2 Lecture