summaryrefslogtreecommitdiff
path: root/src/Scilab2C/SCI2CTests/Mes_tests/signalProcessing/mainfunctionFftShift.sci
blob: b562894f4dd94a7682f9355c305c90072d14524f (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
//SCI2C: DEFAULT_PRECISION= DOUBLE

function mainfunction()


// test fftshift

disp(fftshift(4))
disp(fftshift(5,1))
disp(fftshift(6,2))

disp(fftshift(4-%i))
disp(fftshift(4-%i*2,1))
disp(fftshift(4-%i*3,2))

a=[2 3 4 8; 8 4 5 6;1 2 3 4; 14 5 8 7; 1 2 6 7]
b=[2 3 4 8;1 2 6+3*%i 7]


disp(fftshift(a))
disp(fftshift(a,1))
disp(fftshift(a,2))


disp(fftshift(b))
disp(fftshift(b,1))
disp(fftshift(b,2))


endfunction