Author(s): Ash Matheson
Publisher: The MathWorks
Year: 1998
Language: English
Pages: 206
Getting Ready......Page 9
Introduction......Page 10
Library Basics......Page 11
Using the Online References......Page 12
Additional Sources......Page 13
Installation with MATLAB......Page 14
PC Installation Details......Page 15
68K Macintosh......Page 16
Overview......Page 17
Getting Started......Page 18
Configuring mbuild......Page 19
Changing Compilers......Page 20
Locating Shared Libraries......Page 21
The mbuild Script......Page 22
Customizing mbuild......Page 24
Configuring mbuild......Page 25
Verifying mbuild......Page 27
The mbuild Script......Page 28
Customizing mbuild......Page 29
Shared Libraries (DLLs)......Page 30
Building on Macintosh......Page 31
Configuring mbuild......Page 32
Verifying mbuild......Page 33
The mbuild Script......Page 34
Customizing mbuild......Page 35
68K Macintosh......Page 36
Building on Your Own......Page 37
Writing Programs......Page 39
Array Storage: MATLAB vs. C......Page 41
Macintosh Print Handlers......Page 43
Example 1: Creating and Printing Arrays......Page 44
Example 2: Writing Simple Functions......Page 47
Example 3: Calling Library Routines......Page 50
Example 4: Handling Errors......Page 54
Example 5: Saving and Loading Data......Page 60
How function-functions Use mlfFeval( )......Page 64
Extending the mlfFeval() Table......Page 65
Writing a Thunk Function......Page 66
Using the Library......Page 77
Optional Input Arguments......Page 79
Optional Output Arguments......Page 80
Optional Input and Output Arguments......Page 81
Mapping Rules......Page 83
mlfLoad( ) and mlfSave( )......Page 84
Functions with Variable, Null-Terminated Argument .........Page 85
Indexing and Subscripts......Page 86
Specifying the Subscript......Page 88
Assumptions for the Code Examples......Page 89
Using mlfArrayRef( ) for Two-Dimensional Indexing......Page 90
Selecting a Single Element......Page 91
Selecting a Vector of Elements......Page 92
Selecting a Matrix......Page 94
Selecting Entire Rows or Columns......Page 95
Using mlfArrayRef( ) for One-Dimensional Indexing......Page 96
Selecting a Vector......Page 98
Selecting a Matrix......Page 100
Using mlfArrayRef( ) for Logical Indexing......Page 101
Using a Logical Matrix as a One-Dimensional Index......Page 102
Using Two Logical Vectors as Indices......Page 103
Using One colon Index and One Logical Vector as In.........Page 104
Using mlfArrayAssign( ) for Assignments......Page 105
Assigning to Multiple Elements......Page 106
Assigning to a Portion of a Matrix......Page 107
Assigning to All Elements......Page 108
C and MATLAB Indexing Syntax......Page 109
Providing Your Own Print Handler......Page 113
X Windows/Motif Example......Page 114
Microsoft Windows Example......Page 116
Apple Macintosh Example......Page 117
mlfSave( )......Page 120
mlfLoad( )......Page 121
Setting Up Your Own Memory Management......Page 122
Error Handling......Page 125
Using mlfSetErrorHandler( )......Page 126
Reducing Memory......Page 129
Library Routines......Page 131
Why Two MATLAB Math Libraries?......Page 133
The MATLAB Built-In Library......Page 134
Operators and Special Functions......Page 135
Elementary Matrices and Matrix Manipulation......Page 139
Elementary Math Functions......Page 141
Numerical Linear Algebra......Page 142
Data Analysis and Fourier Transform Functions......Page 144
Character String Functions......Page 145
File I/O Functions......Page 146
Data Types......Page 147
Utility Routines......Page 148
Operators and Special Functions......Page 151
Elementary Matrices and Matrix Manipulation......Page 152
Elementary Math Functions......Page 154
Specialized Math Functions......Page 156
Numerical Linear Algebra......Page 158
Data Analysis and Fourier Transform Functions......Page 160
Polynomial and Interpolation Functions......Page 162
Function-Functions and ODE Solvers......Page 164
Character String Functions......Page 165
Time and Dates......Page 167
Application Program Interface Library......Page 169
Directory Organization......Page 173
/bin......Page 175
/extern/lib/$ARCH......Page 176
/extern/examples/cmath......Page 177
\bin......Page 178
\extern\include......Page 180
\extern\examples\cmath......Page 181
Directory Organization on Macintosh......Page 182
:extern:lib:PowerMac:......Page 183
:extern:include:......Page 184
:extern:examples:cmath:......Page 185
:extern:examples:cmath:codewarrior:......Page 186
Errors and Warnings......Page 187
Errors......Page 189
Warnings......Page 194