MATLAB Programming

MATLAB Programming MATLAB Programming

cda.psych.uiuc.edu
from cda.psych.uiuc.edu More from this publisher
23.06.2015 Views

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

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

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!