chapter 9 Flashcards

You may prefer our related Brainscape-certified flashcards:
1
Q

+

A

used to combine/append elements/arrays, if var being added is of different dimensions then the dimensions are altered

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

blanks operator

A

adds spaces

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

join operator

A

combines strings together as array

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

strcat operator

A

horizontally links two arrays, if the class type of the inputs are different then it defaults to a string array

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

sprintf(formSpec, number)

A

returns string scalar

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

compose(formatSpec, number)

A

returns multiple pieces of formatted text as a string array and escape characters translate

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

lower(string)

A

converts string to all lower case

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

upper(string)

A

converts string to all upper case

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

num2str(numArray, precision#)

A

returns char vector specification with max numbers

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

mat2str(inputMat, precision#)

A

converts input matrix into character vector with max numbers

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

str2double(text)

A

converts text into double precision (68 bit) number array

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

str2num(input)

A

converts num into ascII number

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

*

A

separates format specs

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

sscanf(inputText, formatSpec)

A

converts text to array based on format specs, best for conversion

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

isstring(input)

A

returns 1 if input is string

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

isStringScalar(input)

A

returns 1 if input is string scalar

17
Q

ischar(input)

A

returns 1 if input is character

18
Q

isstrprop(string, catagory)

A

1 if element fits category

categories like alphabet, upper/lowercase, etc

19
Q

strjust

A

returns center justified string

20
Q

strrep

A

finds substring within string and replaces it

21
Q

strip(array)

A

removes consecutive whitespace char from beginning and end of array

22
Q

delimeters

A

characters interpreted as separating substrings

23
Q

split(strIn, delimiter)

A

outputs array of elements split by delimiter, if no delimiter then just spaces

24
Q

splitlines(strIn, delimieter)

A

creates new line for every occurrence of delimiter