blob: a44057d914c994abc06e086c83c47b244659d96a (
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
33
34
35
36
37
|
function opoutsize = FA_SZ_OPSLASH(in1size,in2size)
// function opoutsize = FA_SZ_OPSLASH(in1size,in2size)
// -----------------------------------------------------------------
// Returns the size of the output computed by OPSLASH operator.
//
// Assuming:
// size(in1) = [in1r,in1c]
// size(in2) = [in2r,in2c]
// size(out) = [outr,outc]
//
// ------------------------------
// --- Check input arguments. ---
// ------------------------------
SCI2CNInArgCheck(argn(2),2,2);
in1size = string(in1size);
in2size = string(in2size);
// ------------------------
// --- Generate Output. ---
// ------------------------
// --- Get dimensions of input arguments. ---
in1dim = GetSymbolDimension(in1size);
in2dim = GetSymbolDimension(in2size);
if (in1dim == 0)
opoutsize = in2size;
elseif (in2dim == 0)
opoutsize = in1size;
else
opoutsize(1) = in1size(1);
opoutsize(2) = in2size(1);
end
endfunction
|