Using MATLAB (779505), страница 101
Текст из файла (страница 101)
in functions 3-5../ref/#performance 8-2; after functions 3-9>> prompt in Command Window 3-2@ 21-1| 17-29~ 17-29~= 17-28Aabsolute accuracyBVP 15-78ODE 15-19accelerators, keyboard 2-18access modesHDF files 6-34Access program Web page 2-20accuracy of calculations 17-21ActiveXentries for MATLAB 1-6startup options for MATLAB 1-6addingcells to cell arrays 20-21fields to structure arrays 20-10additional parametersBVP example 15-68, 15-72ODE example 15-13addpath 5-17adjacency matrix 16-17and graphing 16-17Bucky ball 16-18defined 16-17distance between nodes 16-22node 16-17numbering nodes 16-19aggregation 22-37airflow modeling 16-23amp1dae demo 15-5analytical partial derivatives (BVP) 15-79AND operator, rules for evaluating 17-30ans 17-21answer, assigned to ans 17-21argumentschecking number of 17-14defined for function 17-9ordervarargin, varargout 17-16, 17-18passing 17-14passing by reference 17-14passing by value 17-14passing variable number 17-16arithmetic expressions 17-26arithmetic operatorsoverloading 22-29using 17-26Array Editor 5-10preferences 5-12arrayscell array of strings 18-8character 18-5dimensionsinverse permutation 19-13editing 5-10indexing 17-51multidimensional 19-3numericI-1Indexconverting to cell array 20-30of strings 18-6storage 17-51workspace 5-3arrow keys for editing commands 3-8ASCII datadefinition of 6-2exporting 6-16, 6-18exporting delimited data 6-17formats 6-4importing 6-4importing delimited files 6-12importing mixed alphabetic and numeric data6-14importing space-delimited data 6-11saving 6-17table of format samples 6-10using the Import Wizard with 6-4with text headers 6-10, 6-13ASCII filesreading formatted text 6-59specifying delimiter 6-12viewing contents of 5-27writing 6-61assignment statementsbuilding structure arrays with 20-5local and global variables 17-19attributesHDF files 6-35, 6-47Audio/Video Interleave formatsaving graphs 6-27autoinit cellsconverting input cells to 10-26converting to input cell 10-27defining 10-10AutoInit styledefinition of 10-19I-2automatic scalar expansion 17-27automation startup option (automation server)1-6AVI.
See Audio/Video Interleave formatBballode demo 15-41bandwidth of sparse matrix, reducing 16-29bang (!) function 3-12base (numeric), converting 18-15base date 17-63base number conversion 18-4base workspace 5-8Basic Fitting interface 13-31batch mode for starting MATLAB 1-6batonode demo 15-5bicubic interpolation 12-13bilinear interpolation 12-13binary dataexporting 6-25importing 6-20using the Import Wizard 6-20binary filescontrolling data type of values read 6-54writing to 6-55binary from decimal conversion 18-15blank spaces in MATLAB commands 3-4blanksfinding in string arrays 18-12removing from strings 18-7bookmarks in Help browser 4-15boundary conditionsBVP 15-59BVP example 15-65PDE 15-84PDE example 15-89IndexBoundary Value Problems.
See BVPbreak long lines 3-5breakpointsclearing 7-30description 7-18setting 7-22Bring MATLAB to Front command 10-26Brusselator system (ODE example) 15-38brussode demo 15-38Buckminster Fuller dome 16-18Bucky ball 16-18bugs, reporting to The MathWorks 4-32burgersode demo 15-5BVP 15-57defined 15-59rewriting problem as first-order system 15-64BVP solver 15-60additional known parameters 15-63basic syntax 15-61evaluate solution at specific points 15-68examplesboundary condition at infinity (shockbvp)15-72Mathieu’s Equation (mat4bvp) 15-63rapid solution changes (shockbvp) 15-68initial guess 15-68performance 15-75representing problems 15-63unknown parameters 15-67BVP solver properties 15-76analytical partial derivatives 15-79bvpset function 15-76error tolerance 15-77mesh 15-80modifying property structure 15-77querying property structure 15-77solution statistics 15-81vectorization 15-78CC++ and MATLAB OOP 22-8cachingMATLAB directory 5-14, 17-6MATLAB/toolbox directory 17-6M-files 5-14toolbox path 1-10calc zonesdefining 10-10ensuring workspace consistency in M-books10-7evaluating 10-14output from 10-15calling context 17-14calling MATLAB functionscompiling for later use 17-13how MATLAB searches for functions 17-12storing as pseudocode 17-13canonical class 22-9capitalization in MATLAB 3-4case 17-37case conversion 18-3case sensitivity in MATLAB 3-4cat 16-26, 19-2, 19-7, 19-18catchfor error handling 17-59cellindexing 20-20accessing a subset of cells 20-24cell arrays 20-19accessing a subset of cells 20-24accessing data 20-23applying functions to 20-27cell indexing 20-20I-3Indexconcatenating 20-22content indexing 20-21converting to numeric array 20-30creating 20-20using assignments 20-20with cells function 20-23with curly braces 20-22deleting cells 20-24deleting dimensions 20-24displaying 20-21expanding 20-21flat 20-29indexing 20-21multidimensional 19-18nested 20-29building with the cells function 20-29indexing 20-30of strings 18-8comparing strings 18-11of structures 20-31organizing data 20-27overview 20-19preallocating 17-73, 20-23replacing comma-separated list with 20-25reshaping 20-25visualizing 20-21cell data type 17-24cell groupsconverting to input cells 10-32creating 10-9definition of 10-8, 10-28evaluating 10-13output from 10-13cell markersdefined 10-8hiding 10-31printing 10-18I-4celldisp 20-21cellplot 20-21cellsbuilding nested arrays with 20-29preallocating empty arrays with 20-20, 20-23char data type 6-55, 17-24character arrays 18-5categorizing characters of 18-12comparing 18-10comparing values on cell arrays 18-11concatenating 17-54conversion 18-3, 18-15converting to cell arrays 18-8creating 18-5delimiting character 18-13evaluating 17-54, 18-16finding a substring 18-13functions that test 18-2in cell arrays 18-8operations 18-3padding for equal row length 18-6removing trailing blanks 18-7representation 18-5scalar 18-11searching and replacing 18-13token 18-13two-dimensional 18-6using relational operators on 18-11characteristic polynomial of matrix 12-5characteristic roots of matrix 12-5characterscorresponding ASCII values 18-7finding in string 18-12characters per line, maximum 3-5checkin 9-8checking in files 9-7checking out files 9-9Indexundoing 9-10checkout 9-10chol 16-26, 16-33Cholesky factorization 11-25for sparse matrices 16-33class directories 22-7class function 22-11classes 17-22clearing definition 22-7constructor method 22-10debugging 22-6designing 22-9Java 17-24methods required by MATLAB 22-9object-oriented methods 22-3overview 22-3clc 3-9clear 5-8, 17-13, 17-74ClearCase view 9-6clearingCommand Window 3-9clicking on multiple items 2-19clipboard 2-20importing binary data 6-20closest point searchesDelaunay triangulation 12-25closingdesktop tools 2-9MATLAB 1-15closing files 6-52, 6-62cmopts 9-5colamd 16-29Collatz problem 7-18colmmd 16-29, 16-31colon operator 17-26for multidimensional array subscripting 19-9indexing a page with 19-15scalar expansion with 19-5to access subsets of cells 20-24colorgeneral preferences 2-24color modesfor printing M-books 10-23color printingof an M-book 10-18colorsCommand Window preferences 3-16indicators for syntax 3-5colperm 16-28column vectorindexing as 17-51comma to separate function arguments 17-9command flags 1-5Command Historycopying entries from 3-19deleting entries in 3-18description 3-17running functions from 3-18command line editing 3-6Command Windowbringing to the front in Notebook 10-26clearing 3-9description 3-2editing in 3-6help 4-3paging of output in 3-10preferences for 3-13printing contents of 3-11prompt 3-2commandson multiple lines 3-5running 3-2to operating system 3-12See also functionsI-5Indexcomma-separated listusing cell arrays 20-25commentscolor indicators 2-24comments in code 17-11comparingsparse and full matrix storage 16-7strings 18-10complex conjugate transpose operator 17-26complex values in sparse matrix 16-7computational functionsapplying to cell arrays 20-27applying to multidimensional arrays 19-14applying to sparse matrices 16-25applying to structure fields 20-10in M-file 17-4computational geometrymultidimensional 12-27two-dimensional 12-19computer 17-21computer type 17-21concatenatingcell arrays 20-22matrices 17-50strings 17-54condest 16-4conditional statements 17-14configuration management.
See source controlsystemconfiguration, desktop 2-7configuring Notebook 10-24console mode 3-15constructor methods 22-10guidelines 22-10using class in 22-11containment 22-37content indexing 20-21I-6to access cell contents 20-23content of M-files, searching 5-28contents of sparse matrix 16-13Contents tab in Help browserdescription 4-9synchronizing preference 4-23synchronizing with display 4-10Contents.m file 17-5context menus 2-17continue 17-41continue long statements 3-5control keys for editing commands 3-8conv 20-26converter methods 22-20, 22-25convertingbase numbers 18-4cases of strings 18-3dates 17-62numbers 18-15strings 18-3, 18-15converting Word document to M-book 10-5convex hullsmultidimensional 12-28two-dimensional 12-21convolution 12-6correlation coefficients 13-11cos 17-7covariance 13-11creatingcell array 20-20multidimensional array 19-4sparse matrix 16-8string array 18-6strings 18-5structure array 20-5cropping graphicsin M-books 10-22Indexcross 19-14cubic interpolationmultidimensional 12-18one-dimensional 12-12cubic spline interpolation 12-12curly bracesfor cell array indexing 20-20, 20-22to build cell arrays 20-22to nest cell arrays 20-29current directoryat startup for MATLAB 1-3changing 5-22contents of 5-22field in toolbar 5-20relevance to MATLAB 5-20tool 5-20Current Directory browser 5-20preferences 5-30curve fitting 13-22Basic Fitting interface 13-31error bounds 13-30exponential 13-27polynomial 12-7, 13-22curvescomputing length 14-19Cuthill-McKee, reverse ordering 16-29DDAEsolution of 15-3datatype for input 6-54data analysiscolumn-oriented 13-8data class hierarchy 22-4data consistencyevaluating M-books 10-7in an M-book 10-7using calc zones in M-books 10-7data filtering.















