summaryrefslogtreecommitdiff
path: root/demos/Brijesh_Demos/Test_Isreal.sci
blob: 4846d31cd3fa57633df002215e67dd77967bf597 (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
function Test_Isreal
	disp('Datatype: Double');
	i1 = [1 2 3];
	i2 = [1 2 3];
	o1 = isequal(i1,i2);
	disp(o1);

	disp('Datatype: Float');
	i3 = float([4 5 6]);
	i4 = float([4 5 6]);
	o2 = isequal(i3,i4);
	disp(o2);

	disp('Datatype: DoubleComplex');
	i5 = [%i*3 %i*3 %i*3];
	i6 = [%i*3 %i*3 %i*3];
	o3 = isequal(i5,i6);
	disp(o3);

	disp('Datatype: uint16');
	i7 = uint16([4 5 6]);
	i8 = uint16([4 5 6]);
	o4 = isequal(i7,i8);
	disp(o4);
endfunction