chapter 8 Flashcards

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

branching

A

executes list of statements based on logical expression

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

binary operators

A

use parentheses to make order of operations more explicit

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

any(x)

A

true if x is not zero

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

isnan(x)

A

true if x is NaN

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

isfinite(x)

A

true if x is finite

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

isinf(x)

A

true if x is inf or -inf

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

logical operators with arrays

A

element wise, returns array of 0s and 1d based on if it meets argument

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

logical indexing

A

extract elements from array with logical array

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

logical array

A

array of 1s and 0s based on if elements are T or F

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

loops

A

execute statements between keywords repeatedly based on given conditions

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

tic

A

starts internal timer

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

toc

A

returns time in seconds since ic

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

ones(n,m)

A

created array of specific size filled with ones

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

zeros(n,m)

A

creates array of specific size filled with zeros

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

local functions

A

functions only accessible in current script/workspace, defined after main function

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

function handles

A

specific class of variable that is pointer to other functions @

17
Q

pointer

A

variable that points to location in memory

18
Q

function handle structure

A

funHandle = @functionName

you assign the function with a new name that can be referred to later in the code with the feval function.

19
Q

feval example

A

[y2, y1] = feval(funHandle, x1, x2)

evaluates functions using x1 and x2 as inputs to funHandle

20
Q

scope

A

parts of program that access variables value

21
Q

nested function

A

function within another function, shares space with the parent function