正在加载图片...
Contents 1 High-level ys low-level code L1 Introduction 1.2 Advantages and disadvantages 1.2. 1 Portability 1. 2.2 Verbosity 1.2.3 Speed 1. 2. 4 Obscurity 1.3 Words of warning 2 Operators, functions and special 2.1 Operators 222334 2.2 Built-in functions 2.3 M-file functions 3 Basic array properties 3.1 Siz 5666 3.1.1 Size along a specific dimension 3.1.2 Size along multiple dimen IsIons 3.2 Dimensions 3.2.1 Number of dimensions 3.3 Number of elements 7778 3.3.1 Empty arrays 4 Array indices and subseripts 5 Creating basic vectors, matrices and arrays 5.1Cr stant 5.1.1 When the class is determined by the scalar to replicate 5.1.2 When the class is stored in a string variable 5.2 Special vectors 000111 6 Shifting 6.1 Vectors 6.2 Matrices and arraysContents Preface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . v 1 High-level vs low-level code 1 1.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 1.2 Advantages and disadvantages . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 1.2.1 Portability . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 1.2.2 Verbosity . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 1.2.3 Speed . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 1.2.4 Obscurity . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 1.2.5 Difficulty . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 1.3 Words of warning . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 2 Operators, functions and special characters 3 2.1 Operators . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 2.2 Built-in functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4 2.3 M-file functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 3 Basic array properties 6 3.1 Size . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 3.1.1 Size along a specific dimension . . . . . . . . . . . . . . . . . . . . . . . . 6 3.1.2 Size along multiple dimensions . . . . . . . . . . . . . . . . . . . . . . . . 6 3.2 Dimensions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 3.2.1 Number of dimensions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 3.2.2 Singleton dimensions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 3.3 Number of elements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 3.3.1 Empty arrays . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 4 Array indices and subscripts 9 5 Creating basic vectors, matrices and arrays 10 5.1 Creating a constant array . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 5.1.1 When the class is determined by the scalar to replicate . . . . . . . . . . . . 10 5.1.2 When the class is stored in a string variable . . . . . . . . . . . . . . . . . . 11 5.2 Special vectors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11 5.2.1 Uniformly spaced elements . . . . . . . . . . . . . . . . . . . . . . . . . . . 11 6 Shifting 12 6.1 Vectors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12 6.2 Matrices and arrays . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12 ii
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有