summaryrefslogtreecommitdiff
path: root/macros/FunctionAnnotation/FA_SZ_OPDOTSTAR.sci
blob: 3fbae19aa6baf5751415880e9df6c442b197b839 (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
32
function opoutsize = FA_SZ_OPDOTSTAR(in1size,in2size)
// function opoutsize = FA_SZ_OPDOTSTAR(in1size,in2size)
// -----------------------------------------------------------------
// Returns the size of the output computed by OPDOTSTAR operator.
// 
//
// Status:
// 08-Jan-2008 -- Raffaele Nutricato: Author.
// 08-Jan-2008 -- Alberto Morea: Test Ok.
//
// Copyright 2008 Raffaele Nutricato & Alberto Morea.
// Contact: raffaele.nutricato@tiscali.it
// -----------------------------------------------------------------

// ------------------------------
// --- Check input arguments. ---
// ------------------------------
SCI2CNInArgCheck(argn(2),2,2);

// ------------------------
// --- Generate Output. ---
// ------------------------
// --- Get dimensions of input arguments. ---
in1dim = GetSymbolDimension(in1size);

if (in1dim == 0)
   opoutsize = string(in2size);
else
   opoutsize = string(in1size);
end

endfunction