1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
|
function med()
a=float([12,287,312,52; 4,5,456,512; 12, 4, 6,213])
disp('Float')
disp(median(a, 'r'))
disp('')
disp(median(a, 'c'))
disp('')
disp(median(a))
disp('')
b=[12,287,312,52; 4,5,456,512; 12, 4, 6,213]
disp('Double')
disp(median(b, 'r'))
disp('')
disp(median(b, 'c'))
disp('')
disp(median(b))
disp('')
disp('uint16')
c=uint16([12,287,312,52; 4,5,456,512; 12, 4, 6,213])
disp(median(c, 'r'))
disp('')
disp(median(c, 'c'))
disp('')
disp(median(c))
disp('')
disp('doubleComplex')
d= [%i*21, 65+%i*7, %i*121, 56; %i*6112, 12 ,3, 0]
disp(median(d, 'r'))
disp('')
disp(median(d, 'c'))
disp('')
disp(median(d))
disp('')
endfunction
|