MATLAB Programming
MATLAB Programming MATLAB Programming
Index reading HDF4 data 7-52 from the command line 7-55 selecting HDF4 data sets 7-37 subsets of HDF4 data 7-38 realmax 3-15 realmin 3-15 reference, subscripted 9-16 regexp 3-32 regexpi 3-32 regexprep 3-32 regexptranslate 3-32 regular expression metacharacters character classes match alphanumeric character (\w) 3-36 match any character (period) 3-34 match any characters but these ([^c1c2c3]) 3-34 match any of these characters ([c1c2c3]) 3-35 match characters in this range ([c1-c2]) 3-35 match digit character (\d) 3-36 match nonalphanumeric character (\W) 3-34 match nondigit character (\D) 3-34 match nonwhitespace character (\S) 3-34 match whitespace character (\s) 3-36 character representation alarm character (\a) 3-36 backslash character (\\) 3-36 3-73 backspace character (\b) 3-36 carriage return character (\r) 3-37 dollar sign (\$) 3-36 3-73 form feed character (\f) 3-36 hexadecimal character (\x) 3-37 horizontal tab character (\t) 3-37 literal character (\char) 3-37 new line character (\n) 3-36 octal character (\o) 3-37 vertical tab character (\v) 3-37 conditional operators if condition, match expr ((?(condition)expr)) 3-56 3-78 dynamic expressions pattern matching functions 3-61 pattern matching scripts 3-62 replacement expressions 3-61 string replacement functions 3-65 logical operators atomic group ((?>expr)) 3-38 comment (?#expr) 3-39 grouping and capture (expr) 3-38 grouping only (?:expr) 3-38 match exact word (\) 3-41 match expr1 or expr2 (expr1|expr2) 3-39 match if expression begins string (^expr) 3-40 match if expression begins word (\) 3-40 noncapturing group ((?:expr)) 3-38 Index-18
Index lookaround operators match expr1, if followed by expr2 (expr1(?=expr2)) 3-42 match expr1, if not followed by expr2 (expr1(?!expr2)) 3-43 match expr2, if not preceded by expr1 (expr1(?expr)) 3-53 create unnamed token ((expr)) 3-49 give name to token ((?expr))) 3-54 if token, match expr1, else expr2 ((?(token)expr1|expr2)) 3-55 match named token (\k) 3-54 match Nth token (\N) 3-49 replace Nth token ($N) 3-49 replace Nth token (N) 3-49 replace with named token (?) 3-54 regular expressions character classes 3-33 character representation 3-36 conditional expressions 3-55 dynamic expressions 3-58 example 3-59 functions regexp 3-32 regexpi 3-32 regexprep 3-32 regexptranslate 3-32 introduction 3-31 logical operators 3-37 lookaround operators 3-40 used in logical statements 3-45 multiple strings finding a single pattern 3-69 finding multiple patterns 3-70 matching 3-69 replacing 3-71 quantifiers 3-45 lazy 3-48 tokens 3-48 example 1 3-50 example 2 3-51 introduction 3-49 named capture 3-53 operators 3-49 use in replacement string 3-53 relational operators 3-18 empty arrays 3-19 strings 2-57 removing cells from cell array 2-107 fields from structure arrays 2-84 singleton dimensions 1-63 replacing substring within string 2-59 repmap 1-56 reshape 1-62 2-107 reshaping cell arrays 2-107 multidimensional arrays 1-62 reshaping matrices 1-32 rmfield 2-84 Index-19
- Page 810 and 811: 12 Programming Tips Variables This
- Page 812 and 813: 12 Programming Tips AvoidUsingiandj
- Page 814 and 815: 12 Programming Tips Strings This se
- Page 816 and 817: 12 Programming Tips Function regexp
- Page 818 and 819: 12 Programming Tips are useful when
- Page 820 and 821: 12 Programming Tips File Precedence
- Page 822 and 823: 12 Programming Tips Making Nontoolb
- Page 824 and 825: 12 Programming Tips Using switch Ve
- Page 826 and 827: 12 Programming Tips try X = A * B c
- Page 828 and 829: 12 Programming Tips • Load spread
- Page 830 and 831: 12 Programming Tips Files and Filen
- Page 832 and 833: 12 Programming Tips -- METHOD #1 --
- Page 834 and 835: 12 Programming Tips Readable File F
- Page 836 and 837: 12 Programming Tips Starting MATLAB
- Page 838 and 839: 12 Programming Tips Finding the MAT
- Page 840 and 841: 12 Programming Tips For More Inform
- Page 842 and 843: A External Interfaces A-2
- Page 844 and 845: Index arithmetic operators 3-17 ove
- Page 846 and 847: Index debugging 9-6 designing 9-9 j
- Page 848 and 849: Index string, vector of input 2-70
- Page 850 and 851: Index internet 6-116 downloading fr
- Page 852 and 853: Index overloaded 5-37 function work
- Page 854 and 855: Index I if and empty arrays 3-89 ex
- Page 856 and 857: Index scalar 1-47 See also matrices
- Page 858 and 859: Index inheritance multiple 9-40 sim
- Page 862 and 863: Index rotating matrices 1-34 S save
- Page 864 and 865: Index T semicolon ; 3-106 single qu
Index<br />
reading<br />
HDF4 data 7-52<br />
from the command line 7-55<br />
selecting HDF4 data sets 7-37<br />
subsets of HDF4 data 7-38<br />
realmax 3-15<br />
realmin 3-15<br />
reference, subscripted 9-16<br />
regexp 3-32<br />
regexpi 3-32<br />
regexprep 3-32<br />
regexptranslate 3-32<br />
regular expression metacharacters<br />
character classes<br />
match alphanumeric character (\w) 3-36<br />
match any character (period) 3-34<br />
match any characters but these<br />
([^c1c2c3]) 3-34<br />
match any of these characters<br />
([c1c2c3]) 3-35<br />
match characters in this range<br />
([c1-c2]) 3-35<br />
match digit character (\d) 3-36<br />
match nonalphanumeric character<br />
(\W) 3-34<br />
match nondigit character (\D) 3-34<br />
match nonwhitespace character<br />
(\S) 3-34<br />
match whitespace character (\s) 3-36<br />
character representation<br />
alarm character (\a) 3-36<br />
backslash character (\\) 3-36 3-73<br />
backspace character (\b) 3-36<br />
carriage return character (\r) 3-37<br />
dollar sign (\$) 3-36 3-73<br />
form feed character (\f) 3-36<br />
hexadecimal character (\x) 3-37<br />
horizontal tab character (\t) 3-37<br />
literal character (\char) 3-37<br />
new line character (\n) 3-36<br />
octal character (\o) 3-37<br />
vertical tab character (\v) 3-37<br />
conditional operators<br />
if condition, match expr<br />
((?(condition)expr)) 3-56 3-78<br />
dynamic expressions<br />
pattern matching functions 3-61<br />
pattern matching scripts 3-62<br />
replacement expressions 3-61<br />
string replacement functions 3-65<br />
logical operators<br />
atomic group ((?>expr)) 3-38<br />
comment (?#expr) 3-39<br />
grouping and capture (expr) 3-38<br />
grouping only (?:expr) 3-38<br />
match exact word (\) 3-41<br />
match expr1 or expr2 (expr1|expr2) 3-39<br />
match if expression begins string<br />
(^expr) 3-40<br />
match if expression begins word<br />
(\) 3-40<br />
noncapturing group ((?:expr)) 3-38<br />
Index-18