summaryrefslogtreecommitdiff
path: root/2.3-1/demos/Abhinav_Demos/nan_max.sci
blob: 769a92a7dd99e8f52378b9d21c557143f6042685 (plain)
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
function nan_max()

x=[%nan 0.121 %nan 0.5 0.8; 0.12 %nan 9 12 %nan]

disp('Double')

disp(nanmax(x))
disp('')

disp(nanmax(x , 'r'))
disp('')

disp(nanmax(x, 'c'))
disp('')

y= uint16(x)

disp('Float')

disp(nanmax(y))
disp('')

disp(nanmax(y , 'r'))
disp('')

disp(nanmax(y, 'c'))
disp('')




endfunction