diff options
author | Brijeshcr | 2017-07-14 18:01:26 +0530 |
---|---|---|
committer | Brijeshcr | 2017-07-14 18:01:26 +0530 |
commit | 2e35a1f26a7ec9e4466a5e0448f9a868aa801471 (patch) | |
tree | 5d289a280e2e5bea4580bfe25fe845b3fae7c7d4 /2.3-1/demos/Brijesh_Demos/Test_Toeplitz.sci | |
parent | e826d667659a225bf8c514dceb5d063752c2c3f8 (diff) | |
download | Scilab2C-2e35a1f26a7ec9e4466a5e0448f9a868aa801471.tar.gz Scilab2C-2e35a1f26a7ec9e4466a5e0448f9a868aa801471.tar.bz2 Scilab2C-2e35a1f26a7ec9e4466a5e0448f9a868aa801471.zip |
ERF, ERFC and Demos added
Diffstat (limited to '2.3-1/demos/Brijesh_Demos/Test_Toeplitz.sci')
-rw-r--r-- | 2.3-1/demos/Brijesh_Demos/Test_Toeplitz.sci | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/2.3-1/demos/Brijesh_Demos/Test_Toeplitz.sci b/2.3-1/demos/Brijesh_Demos/Test_Toeplitz.sci new file mode 100644 index 00000000..6d1269ec --- /dev/null +++ b/2.3-1/demos/Brijesh_Demos/Test_Toeplitz.sci @@ -0,0 +1,50 @@ +function Test_Toeplitz() + disp('Datatype: Double'); + ai = [1 2 3 4]; + bi = [1 6 7 8]; + as1 = toeplitz(ai,bi); + disp(as1); + + disp('Datatype: Float'); + aid = float(ai); + bid = float(bi); + as2 = toeplitz(aid,bid); + disp(as2); + + disp('Datatype: uint8'); + aiu8 = uint8(ai); + biu8 = uint8(bi); + as3 = toeplitz(aiu8,biu8); + disp(as3); + + disp('Datatype: int8'); + ai8 = int8(ai); + bi8 = int8(bi); + as4= toeplitz(ai8,bi8); + disp(as4); + + disp('Datatype: uint16'); + aiu16 = uint16(ai); + biu16 = uint16(bi); + as5 = toeplitz(aiu16,biu16); + disp(as5); + + disp('Datatype: int16'); + ai16 = int16(ai); + bi16 = int16(bi); + as6 = toeplitz(ai16,bi16); + disp(as6); + + disp('Datatype: Double Complex'); + adc = [1+%i*1 2+%i*2 3+%i*3 4+%i*4]; + bdc = [1+%i*1 6+%i*6 7+%i*7 8+%i*8]; + as7 = toeplitz(adc,bdc); + disp(as7); + + disp('Datatype: Char'); + aic = ['a' 'b' 'c' 'd']; + bic = ['a' 'x' 'y' 'z']; + as9 = toeplitz(aic,bic); + disp(as9); + +endfunction |