summaryrefslogtreecommitdiff
path: root/2.3-1/demos/Brijesh_Demos/test_scaling.sci
blob: 19aa7f4ceb902a45568699e27efbd48a63669c7b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
function test_scaling
	disp("Data Type: Double");
	i1 = [1 2 3; 4 5 6];
	i2 = [5 5];
	o1 = scaling(i1, 10, i2);
        disp(o1);
	disp("Data Type: Float");
	o2 = scaling(float(i1), 10, float(i2));
        disp(o2);
	disp("Data Type: Double Complex");
	i3 = [1 2+%i %i*3; 4 0 6];
	i4 = [5*%i 0];
	o3 = scaling(i3, %i, i4);
        disp(o3);
endfunction