LAB 1-5 Flashcards

(40 cards)

1
Q

divide 144over12

A

144/12

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

devide 12 over 144 in two ways

A

12/144 or 144\12

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

the square root of a

A

sqrt(a)

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

output 1+8i

A

1+8j

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

find the absolute value of a

A

abs(a)

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

find the angle of a in degree

A

angle(a)

ans*180/pi

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

find the conjunction of a

A

conj(a)

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

find the imaginary part of a

A

imag(a)

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

out out the numbers from 1 to 4

A

1:4

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

output the odd numbers from 1 to 8

A

1:2:8

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

if g=1:4

output the numbers vertically

A

g(:)

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

from g=1:4

find the maximum value

A

max(g)

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

from g=1:4

find the minimum value

A

min(g)

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

from g=1:4

find the third value

A

g(3)

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

list the following numbers 1,5,9,3

A

h=[1 5 9 3]

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

how to show the following

A

subplot(2,1,1)

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

how to show the following

A

subplot(2,1,2)

18
Q

round to the nearest integer toward zero

19
Q

round to the nearest less than or equal to that element

20
Q

round to the nearest integer greater than or equal to that element

21
Q

round to the nearest integer

22
Q

10^? = 100

23
Q

find the exponential of a number

24
Q

2 to the power of 3

25
output the matrix
[16 3 2;5 10 11]
26
add the rows of the matrix
sum(a)
27
rotate the matrix rows and columns
b=a'
28
show the values diagonally
diag(a)
29
flip the matrix left to right
fliplr(a)
30
extract the value in the 3rd row and second column
a(3,2)
31
extract the fourth value
a(4)
32
change the number in the second row and second column to 22
a(2,2)=22
33
find the number of rows and columns in the matrix
size(a) [o,r]=size(a)
34
display numbers from 100 to 50 subtracting 7 going down to 50
[100:-7:50]
35
how to plot a graph on another graph
hold on
36
subplot(1,2,2)
37
subplot(2,2,1) subplot(2,2,2) subplot(2,2,3)
38
show the grid on the graph
grid on
39
plot in 3d
plot3(a,b,c)
40
draw a 3d graph with color
[t]=meshgrid(0:pi/100:2\*pi) mesh(y,yl,t)