LAB 1-5 Flashcards
1
Q
divide 144over12
A
144/12
2
Q
devide 12 over 144 in two ways
A
12/144 or 144\12
3
Q
the square root of a
A
sqrt(a)
4
Q
output 1+8i
A
1+8j
5
Q
find the absolute value of a
A
abs(a)
6
Q
find the angle of a in degree
A
angle(a)
ans*180/pi
7
Q
find the conjunction of a
A
conj(a)
8
Q
find the imaginary part of a
A
imag(a)
9
Q
out out the numbers from 1 to 4
A
1:4
10
Q
output the odd numbers from 1 to 8
A
1:2:8
11
Q
if g=1:4
output the numbers vertically
A
g(:)
12
Q
from g=1:4
find the maximum value
A
max(g)
13
Q
from g=1:4
find the minimum value
A
min(g)
14
Q
from g=1:4
find the third value
A
g(3)
15
Q
list the following numbers 1,5,9,3
A
h=[1 5 9 3]
16
Q
how to show the following
A
subplot(2,1,1)