summaryrefslogtreecommitdiff
path: root/2.3-1/demos/Brijesh_Demos/test_center.sci
blob: 92815800a99812d91594c9b316d02f85487f07c1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
function test_center
	disp('Datatype: Double');
	i1 = [1 2 3; 4 5 6];
	o1 = center(i1);
	disp(o1);
	disp('Datatype: float');
	i2 = float([1 2 3; 4 5 6]);
	o2 = center(i2);
	disp(o2);
	disp('Datatype: Double Complex');
	i3 = [0 %i 3+%i; 4 5*%i 0];
	o3 = center(i3);
	disp(o3);
endfunction