补充内容 Programming with MATLAB
Programming with MATLAB 补充内容:
Introduce MATLAB is a high-level language that includes matrix-based data structures, its own internal data types, an extensive catalog of functions, an environment in which to develop your own functions and scripts, the ability to import and export to many types of data files, object-oriented programming capabilities, and interfaces to external technologies such as COM, Java, programs written in C and Fortran, and serial port devices
Introduce MATLAB® is a high-level language that includes matrix-based data structures, its own internal data types, an extensive catalog of functions, an environment in which to develop your own functions and scripts, the ability to import and export to many types of data files, object-oriented programming capabilities, and interfaces to external technologies such as COM, Java, programs written in C and Fortran, and serial port devices
Introduce This lecture presents the MATLAB programming features and techniques in the following chapters ● Data Structures ● Data Types O Basic Program Components M-File Programming
Introduce This lecture presents the MATLAB programming features and techniques in the following chapters: ⚫Data Structures. ⚫Data Types. ⚫Basic Program Components. ⚫M-File Programming
Data Structures The most basic data structure in MATLAB is the matrix MATLAB uses these two-dimensional matrices to store single numbers and linear series of numbers as well. In these cases, the dimensions are 1-by-1 and 1-by-n respectively, where n is the length of the numeric series MATLAB also supports data structures that have more than two dimensions These data elements can be numbers characters logical states of true or false, or even other MATLAB structure types
Data Structures MATLAB uses these two-dimensional matrices to store single numbers and linear series of numbers as well. In these cases, the dimensions are 1-by-1 and 1-by-n respectively, where n is the length of the numeric series. The most basic data structure in MATLAB® is the matrix. These data elements can be numbers, characters, logical states of true or false, or even other MATLAB structure types. MATLAB also supports data structures that have more than two dimensions
1-1 Creating Matrice Method 1: Constructing a Simple matrix The simplest way to create a matrix in MATLAB is to use the matrix constructor operator, [ Create a row in the matrix by entering elements(shown as E below) within the brackets. Separate each element with a comma or space roW=[E1,E2,…,.m] roW=[E1E2…Em
1-1 Creating Matrice The simplest way to create a matrix in MATLAB is to use the matrix constructor operator, []. Create a row in the matrix by entering elements (shown as E below) within the brackets. Separate each element with a comma or space: row = [E1, E2, ..., Em] row = [E1 E2 ... Em] Method 1: Constructing a Simple Matrix