MATLAB Flashcards

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)

A

polar plot

25
Q

clc

A

clears command window

26
Q

switch statement from

A

switches input expression

27
Q

switch constant

A

code is executed based on the value of a single integer, character, of logical expression

28
Q

logical(a)

A

converts numerical values to logical values (T/F)

29
Q

all(a)

A

returns 1 if all elements are not equal to zero

30
Q

isnumeric(a)

A

returns 1 for numeric array

31
Q

isempy(a)

A

returns 1 for empty array

32
Q

xor

A

exclusive OR

33
Q

polyval(a,x)

A

evaluates a polynomial at specific values of its independent variable x

34
Q

poly(x)

A

coefficients of the polynomial whose roots are specified by the array x

35
Q

conv(a,b)

A

computes the product of two polynomials described by the coefficient of arrays a and b

36
Q

\n

A

skip a line

37
Q

fplot(y,[xmin x max])

A

automatically analyzes the functions and sets the plotting points so all features of the function are shown

38
Q

plot(x,polyval(a,x))

A

plots the polynomial at specified values of the independent variable

39
Q

eye(n,m)

A

creates an n x m identity matrix

40
Q

eye(n)

A

creates an n x n identity matrix

41
Q

size(arr)

A

returns number of rows and columns in array

42
Q

save

A

saves data in workspace to a file

43
Q

clear

A

clears variables in workspace