blob: bcc110c457dc22b3a5b66a95193697bca8c4be2c (
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
|
// Test file for "Column" function for the data types double, float, double complex, string , uint16.
// All the below statements are added to initialize variables in different data types
//The function written doesn't work for string or character scalar as of now.
function test_mvcorrel()
disp(" ** mvcorrel ** ");
disp('Double');
a=[1;0;3;4;5;4;0];
b= mvcorrel(a);
disp(b);
disp('')
c=[1 0 3; 4 5 8; 1 10 25];
d=mvcorrel(c)
disp(d)
disp('')
e=mvcorrel(1)
disp(e)
disp('Float');
f=float([1;0;3;4;5;4;0]);
g= mvcorrel(f);
disp(g);
disp('')
h=float([1 0 3; 4 5 8; 1 10 25]);
i=mvcorrel(h)
disp(i)
disp('')
j= float(4)
k=mvcorrel(j)
disp(k)
endfunction
|