blob: 5fcf4e081b214577bc48e96f1521b4f133a637f6 (
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
|
function SizeIn = SizeInByte(InDataType);
// function SizeIn = SizeInByte(InDataType);
// -----------------------------------------------------------------
// Returns the size in bytes of the input data type.
//
// Input data:
// InDataType: input data type. It can be:
// 'float'
// 'double'
// 'floatComplex*'
// 'doubleComplex*'
//
// Output data:
// SizeIn: size in bytes of the input data type.
//
// Status:
// 12-May-2007 -- Nutricato Raffaele: Author.
// -----------------------------------------------------------------
if (InDataType == 'float')
SizeIn = 4;
elseif (InDataType == 'double')
SizeIn = 8;
elseif (InDataType == 'floatComplex*')
SizeIn = 8;
elseif (InDataType == 'doubleComplex*')
SizeIn = 16;
else
error('Unknown data type: '+InDataType);
end
endfunction
|