LAB 1-5 Flashcards

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

A

fix(a)

19
Q

round to the nearest less than or equal to that element

A

floor(a)

20
Q

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

A

ceil(a)

21
Q

round to the nearest integer

A

round(a)

22
Q

10^? = 100

A

log10(100)

23
Q

find the exponential of a number

A

exp(a)

24
Q

2 to the power of 3

A

2^3

25
Q

output the matrix

A

[16 3 2;5 10 11]

26
Q

add the rows of the matrix

A

sum(a)

27
Q

rotate the matrix rows and columns

A

b=a’

28
Q

show the values diagonally

A

diag(a)

29
Q

flip the matrix left to right

A

fliplr(a)

30
Q

extract the value in the 3rd row and second column

A

a(3,2)

31
Q

extract the fourth value

A

a(4)

32
Q

change the number in the second row and second column to 22

A

a(2,2)=22

33
Q

find the number of rows and columns in the matrix

A

size(a)

[o,r]=size(a)

34
Q

display numbers from 100 to 50 subtracting 7 going down to 50

A

[100:-7:50]

35
Q

how to plot a graph on another graph

A

hold on

36
Q
A

subplot(1,2,2)

37
Q
A

subplot(2,2,1)

subplot(2,2,2)

subplot(2,2,3)

38
Q

show the grid on the graph

A

grid on

39
Q

plot in 3d

A

plot3(a,b,c)

40
Q

draw a 3d graph with color

A

[t]=meshgrid(0:pi/100:2*pi)

mesh(y,yl,t)