chapter 12 Flashcards

(41 cards)

1
Q

rectangular data grids

A

regularly spaced rectangular data set where values are coordinates, element number as x val and value as y val

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

mesh grid format

A

elements in each column of 2D x-array are all identical and elements in each row in 2D y-array are identical

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

[xmesh, ymesh] = meshgrid(xVals, yVals)

A

replicated 1D array xvals and ovals to make data grid with output coordinate arrays

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

[xndGrid, yndGrid] = ndgrid(xVals, yVals)

A

replicates 1D arrays, ovals and y vals, to make data grid and transpose values

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

dimensions of a grid

A

length(xVals) x length(yVals)

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

surf(x, y, z)

A

makes surface plot
(z = color data, x & y are 1D/2D arrays for coordinates)

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

surfc(x, y, z)

A

makes surface plot with contour lines

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

mesh(x, y, z)

A

wire frame mesh

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

meshc(x, y, z)

A

plots mesh with contour

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

meshz(x,y,z)

A

plots curtain around mesh

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

waterfall(x, y, z)

A

draws mesh similar to mesh but no lines from columns

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

surfl(x, y,z)

A

plots surface plot with color map based on lighting

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

shading(x, y, z)

A

sets color shading properties

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

triplot(x, y, z)

A

triangle plot

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

trimes(x, y, z)

A

triangle as mesh

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

trisurf(x, y, z)

A

triangle as surface

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

true or false, the size of a plot can change between iterations

18
Q

hold on;

A

displays additional points

19
Q

anonymous function

A

custom function defined directly in workspace and not stored in separate program

20
Q

anonymous function example

A

myFct = @(x)x+14

@ creates function handle
x is input
x + 14 is statement executed by function

21
Q

recursive function

A

function that calls itself using branches in computing

22
Q

symbolic variables

A

represent unknown numeric var like x

23
Q

create sym vars

A

sym(‘x’) or syms x

24
Q

sym(num, flag)

A

converts num to output specified by flag (num of floating)

25
sym('A', [3 4])
creates symbolc matrix, values are listed as A3_2 for 3rd row 2nd column
26
subs(s, old, new)
performs symbolic substitute and returns copt of s replacing all occurrences o old with new
27
symvar
used to see which derivative will be taken by default
28
formulas(f)
returns expressions defining symbolic function f
29
symfun(formula, inputs)
returns symbolic function using inputs as x
30
COMPOSE
function composition f(g(y))
31
pretty(s)
prints symbolic expression in typeset form
32
interpolation
estimates function values when only a few points are known, a line that goes through all points
33
interpolating polynomial
of degree (n-1), goes through all n points
34
piece wise linear interpolation
draws many small lines that connect every consecutive point, each measured data point is a endpoint of line
35
third order polynomial
captures functional Vals and first/second order derivatives continuous at data points
36
curve fitting
finds f(x) that best fits experimental data set, does not have to go though all points
37
residual error
error between f(xk) and measured fk, cab ve positive or negative
38
least squares reffression
finds best fit using residual error
39
linear regression fit
seats functional relationship that is linear in terms of parameters
40
nonlinear regression fit
seeks functional relationship that is nonlinear in terms of fitting constants like e
41