Using MATLAB (779505), страница 102
Текст из файла (страница 102)
See filteringdata fitting. See curve fittimgdata griddingmultidimensional 12-18data organizationcell arrays 20-27multidimensional arrays 19-16structure arrays 20-12data setsSee HDF data setsdata types 17-22cell 17-24char 17-24classes 22-4double 17-24precision 6-55double 6-55reading files 6-54single 17-23sparse 17-24sparse matrices 17-22struct 17-24uint 17-24user-defined 22-4UserObject 17-24data. See alsomultivariate datastatistical dataunivariate datadatatip 7-27date 17-67datenum 17-64, 17-65datesbase 17-63I-7Indexconversions 17-64formats 17-62handling and converting 17-62number 17-63string, vector of input 17-65datestr 17-64, 17-65datevec 17-64dbclear 7-30dbstack 7-24dbstop 7-23deblank 18-7debuggeroption for UNIX 1-7debuggingending 7-30example 7-18M-files 7-2, 7-17option for using functions 7-36prompt 7-24techniques 7-17tool 7-18debugging class methods 22-6decimal places in output 3-10decimal representationto binary 18-15to hexadecimal 18-15decompositioneigenvalue 11-35Schur 11-37singular value 11-39deconvolution 12-6default function 21-15defaultspreferences for MATLAB 2-21setting in startup file for MATLAB 1-5Define Autoinit Cell command 10-26Define Calc Zone command 10-27I-8Define Input Cell command 10-27Delaunay multidimensional tessellations 12-30Delaunay triangulation 12-21closest point searches 12-25delay-differential equationswith ODE solvers 15-55delete 5-25deletingcells from cell array 20-24fields from structure arrays 20-10files 5-25matrix rows and columns 17-49deletion operator 17-49delimiter in string 18-13delimiters,defined 6-9demosaccessing from Launch Pad 2-5density of sparse matrix 16-7derivativespolynomial 12-6desktopconfiguration 2-7saving 2-7description 2-2font preferences for 2-23layout, predefined options 2-16starting without 1-8toolsclosing 2-9opening 2-4windowsclosing 2-9docking 2-10grouping together 2-14moving 2-10opening 2-4sizing 2-9Indexundocking 2-12determinant of matrix 11-21development environment for MATLAB 2-2diag 16-26diagonalcreating sparse matrix from 16-10diary 3-12, 6-18difference equations 13-40differential equations 15-1boundary value problems for ODEs 15-57initial value problems for ODEs and DAEs15-3partial differential equations 15-82differential-algebraic equations.
See DAEdim argument for cat 19-7dimensionsdeleting 20-24permuting 19-12removing singleton 19-11dir 5-22direct methods for systems of equations 16-36directoriesadding to path 22-7caching for MATLAB 5-14class 22-7Contents.m file 17-5creating 5-24deleting 5-25help for 17-5MATLABcaching 17-6private 17-45, 22-6renaming 5-25searching contents of 5-20temporary 6-53See also current directory, search pathdiscrete Fourier transform. See Fouriertransformsdisp 20-17dispatch type 22-68dispatching priority 17-12display method 22-12examples 22-13display pane in Help browser 4-17displayingcell arrays 20-21error and warning messages 17-60field names for structure array 20-6sparse matrices 16-15displaying output 3-9distance between nodes 16-22docking windows in desktop 2-10documentationlocation preference for Help browser 4-22printing 4-26problems, reporting 4-32viewing 4-17dot product 11-8double data type 17-24double precision 6-55double-precision matrix 17-22dragging in the desktop 2-20EEarth Observing System (EOS)See EOS (Earth Observing System)echopreferences setting 3-15edit 7-4editingin Command Window 3-6M-files 7-3I-9Index$nopage>editorSee also Editor/Debugger 3-6editoraccessing 17-5for creating M-files 17-3, 17-5setting as default 7-36editor external to MATLAB 7-36Editor, stand-alone (Windows) 7-6Editor/Debuggerdescription 7-3example 7-18indenting 7-3preferences 7-35See also editoreig 19-15eigenvalues 11-35of sparse matrix 16-39eigenvectors 11-35element-by-element organization for structures20-15ellipsis (...) in functions 3-5else, elseif 17-35, 17-36Embed Figures in M-book check box 10-21embedding graphicsin M-book 10-21empty arraysand if statement 17-37and relational operators 17-29and while loops 17-39empty matrices 17-57end method 22-18end of file 6-56ending MATLAB 1-15environment settings at startup 1-5EOS (Earth Observing System)sources of information 6-29eps 17-21I-10epsilon 17-21equal to operator 17-28error 17-8error boundscurve fitting 13-30error messagesin Command Window 3-12error styledefinition of 10-19error toleranceBVP problems 15-77effects of too large (ODE) 15-55machine precision 15-53ODE problems 15-18errors 17-59color indicators 2-24displaying 17-60finding 7-17handling 17-59run-time 7-17syntax 7-17evalfor error handling 17-59Evaluate Calc Zone command 10-28Evaluate Cell command 10-28Evaluate Loop command 10-29Evaluate Loop dialog box 10-15Evaluate M-Book command 10-30evaluatingstring containing function name 17-54string containing MATLAB code 18-16string containing MATLAB expression 17-54evaluating a selectionCommand History 3-18Command Window 3-3evaluating M-booksensuring data consistency 10-7Indexevent location (ODE) 15-29advanced example 15-44simple example 15-41examplesadjacency matrix (sparse) 16-17airflow modeling 16-23Bucky ball 16-18checking number of function arguments 17-14container class 22-54for 17-40function 17-8if 17-36in documentation, index of 4-10inheritance 22-38M-file for structure array 20-12polynomial class 22-24running from Help browser 4-19script 17-7second difference operator 16-9sparse matrix 16-9, 16-17switch 17-38theoretical graph (sparse) 16-17vectorization 17-71while 17-39examples (BVP)boundary condition at infinity (fsbvp) 15-72Mathieu’s Equation (mat4bvp) 15-63rapid solution changes (shockbvp) 15-68two solutions (twobvp) 15-58examples (DAE)electrical circuit (amp1dae) 15-5Robertson problem (hb1dae) 15-47examples (MATLAB PDE) 15-82electrodynamics problem (pdex4) 15-94simple PDE (pdex1) 15-88examples (ODE) 15-31advanced event location (orbitode) 15-44Brusselator system (brussode) 15-38constant mass matrix (fem2ode) 15-5finite element discretization (fem1ode) 15-35nonstiff 15-11rigid body (rigidode) 15-32Robertson problem (hb1ode) 15-5simple event location (ballode) 15-41stiff 15-14strongly state-dependent mass matrix(burgersode) 15-5time-, state-dependent mass matrix (batonode)15-5van der Pol (vdpode) 15-33exclusive OR operator 17-31execution,pausing 17-69exiting MATLAB 1-15expandingcell arrays 20-21structure arrays 20-5exponential curve fitting 13-27exportingASCII data 6-16, 6-18binary data formats 6-25in HDF format 6-41exporting data,overview 6-2expressionsarithmetic 17-26involving empty arrays 17-29logical 17-29most recent answer 17-21overloading 22-21relational 17-28scalar expansion with 17-27ext startup option 1-7external program, running from MATLAB 17-70eye 16-25derivation of the name 11-11I-11IndexFfactorization 16-30Cholesky 11-25for sparse matrices 16-30Cholesky 16-33LU 16-30triangular 16-30Hermitian positive definite 11-26incomplete 16-35LU 11-26partial pivoting 11-27positive definite 11-25QR 11-28fast Fourier transform.
See Fourier transformsfavorites in Help browser 4-15fclose 6-52, 6-62feedback to The MathWorks 4-32fem1ode demo 15-35fem2ode demo 15-5feof 6-56fevalusing on function handles 21-3, 21-9using on function name strings 21-28fidSee file identifiersfieldnames 20-6fields 20-4, 20-5accessing data within 20-7accessing with getfield 20-9adding to structure array 20-10applying functions to 20-10all like-named fields 20-11assigning data to 20-5assigning with setfield 20-9deleting from structures 20-10indexing within 20-8names 20-6I-12size 20-10writing M-files for 20-11fields 20-6file identifiersclearing 6-62file identifiers (fid) 6-52file management system.
See source controlsystemfilebrowser 5-20filesASCIIreading formatted text 6-59beginning of 6-56binarycontrolling data type values read 6-54closing 6-52, 6-62contents, viewing 5-27copying 5-25creating in the Current Directory browser 5-24current position 6-56deleting 5-25editing M-files 7-3end of 6-56failing to open 6-52identifiers 6-52log 1-6MATLAB related, listing 5-22naming 5-14opening 5-26, 6-52operations in MATLAB 5-20permissions 6-52position 6-56renaming 5-25running 5-27source control 9-2temporary 6-53viewing contents of 5-27Indexfiles, ASCIIreading 6-58specifying delimiter 6-12writing 6-61files, binarydata types 6-54reading 6-54writing to 6-55fill-in of sparse matrix 16-22filteringdifference equations 13-40Find & Replace feature in Current Directorybrowser 5-28find functionand sparse matrices 16-16and subscripting 17-32findingM-file content 7-12string in M-files 5-28substring within a string 18-13text in page of Help browser 4-19finish.m 1-15finishdlg.m 1-15finishsav.m 1-15finite differences 13-12finite element discretization (ODE example)15-35first-order differential equationsrepresentation for BVP solver 15-64representation for ODE solvers 15-11flags for startup 1-5float 6-55floating-point numberlargest 17-21smallest 17-21floating-point precision 6-55floating-point relative accuracy 17-21flow control 17-35catch 17-42continue 17-41else 17-35elseif 17-35for 17-40if 17-35return 17-42switch 17-37try 17-42while 17-39folders.
See directoriesfontHelp browser 4-24Help browser display pane 4-25Help Navigator 4-24in Command Window 3-15preferences in MATLAB 2-23fopen 6-52failing 6-52for 17-40, 20-30example 17-40indexing 17-40nested 17-40syntax 17-40formatcontrolling numeric format in M-book 10-20date 17-62in Array Editor 5-12preferences 3-14format 3-10in M-book 10-20Fourier analysis 13-43concepts 13-44Fourier transforms 13-43calculating sunspot periodicity 13-45FFT-based interpolation 12-13I-13Indexlength vs. speed 13-50phase and magnitude of transformed data13-49fragmentation, reducing 17-74fread 6-54frewind 6-56fsbvp demo 15-72fseek 6-56ftell 6-56full 16-26, 16-29full text searching in Help browser 4-13func2strdescription 21-21example 21-21function call history report 8-11function definition line 17-4, 17-9for subfunction 17-43function details report 8-10function functions 14-1function handles 17-24, 21-1benefits of 21-3constructing 21-7converting from function name string 21-22converting to function name string 21-21effect on performance 21-5error conditions 21-26evaluating a nonscalar function handle21-27including path in the constructor 21-26nonexistent function 21-26evaluating 21-9finding the binding functions 21-13for subfunctions, private functions 21-4maximum name length 21-7operations on 21-21overloading 21-3, 21-9, 21-18overview of 21-2I-14passing 21-3saving and loading 21-25testing for data type 21-23testing for equality 21-23typesconstructor 21-18overloaded 21-18private 21-20simple 21-17subfunction 21-19function name stringconverting from function handle 21-21converting to function handle 21-22function workspace 5-8, 17-14functions 17-8applyingto multidimensional structure arrays 19-20to structure contents 20-10applying to cell arrays 20-27argumentspassing variable number of 17-16body 17-4, 17-10calling 17-13calling context 17-14characteristics 17-3class 22-11clearing from memory 17-13color indicators 2-24computational, applying to structure fields20-10contents 17-9converters 22-25creating arrays with 19-6default 21-15dispatching priority 17-12example 17-8executing function name string 17-54Indexhelp for 4-28reference page 4-3searching 4-13inferiorto 22-66isa 22-11logical 17-31long (on multiple lines) 3-5mathematical.















