MATLAB Flashcards

(43 cards)

1
Q

Loops

A

cause specific code to repeat

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

ans

A

stores the result of an expression

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

roots(x)

A

roots of a polynomial

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

isinf(a)

A

returns 1 for infinite

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

ischar(a)

A

returns 1 for character

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

clf

A

clears figure window

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

subplot(m,n,p)

A

displays several plots in the same figure window

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

plot3(x,y,z)

A

plots function of two independent variables x and y

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

hold on

A

freezes the current plot for subsequent graphics command

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

branches

A

selects specific sections of code to execute

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

isnan(a)

A

returns 1 for not a number

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

any(a)

A

returns 1 if any elements do not equal 0

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

ones(n,m)

A

creates an n x m array of ones

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

ones(n)

A

creates an n x n array of ones

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

zeros(n,m)

A

creates an n x m array of zeros

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

zeros(n)

A

creates an n x n array of zeros

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

length(arr)

A

returns the length of a vector or longest dimension

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

load

A

loads file into workspace

19
Q

!

A

embeds operating system commands directly into program

20
Q

plot(x,y)

A

plots x and y versus each other

21
Q

semilogx(x,y)

A

plots x on a logarithmic axis

22
Q

semilogy(x,y)

A

plots y on a logarithmic axis

23
Q

bar(x,y)

A

creates a bar chart

24
Q

polar(theta,r)

25
clc
clears command window
26
switch statement from
switches input expression
27
switch constant
code is executed based on the value of a single integer, character, of logical expression
28
logical(a)
converts numerical values to logical values (T/F)
29
all(a)
returns 1 if all elements are not equal to zero
30
isnumeric(a)
returns 1 for numeric array
31
isempy(a)
returns 1 for empty array
32
xor
exclusive OR
33
polyval(a,x)
evaluates a polynomial at specific values of its independent variable x
34
poly(x)
coefficients of the polynomial whose roots are specified by the array x
35
conv(a,b)
computes the product of two polynomials described by the coefficient of arrays a and b
36
\n
skip a line
37
fplot(y,[xmin x max])
automatically analyzes the functions and sets the plotting points so all features of the function are shown
38
plot(x,polyval(a,x))
plots the polynomial at specified values of the independent variable
39
eye(n,m)
creates an n x m identity matrix
40
eye(n)
creates an n x n identity matrix
41
size(arr)
returns number of rows and columns in array
42
save
saves data in workspace to a file
43
clear
clears variables in workspace