Diff of /inst/__tito_dim__.m [000000] .. [eff17f]  Maximize  Restore

Switch to unified view

a b/inst/__tito_dim__.m
1
## Copyright (C) 2009-2014   Lukas F. Reichlin
2
##
3
## This file is part of LTI Syncope.
4
##
5
## LTI Syncope is free software: you can redistribute it and/or modify
6
## it under the terms of the GNU General Public License as published by
7
## the Free Software Foundation, either version 3 of the License, or
8
## (at your option) any later version.
9
##
10
## LTI Syncope is distributed in the hope that it will be useful,
11
## but WITHOUT ANY WARRANTY; without even the implied warranty of
12
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13
## GNU General Public License for more details.
14
##
15
## You should have received a copy of the GNU General Public License
16
## along with LTI Syncope.  If not, see <http://www.gnu.org/licenses/>.
17
18
## TODO
19
20
## Author: Lukas Reichlin <lukas.reichlin@gmail.com>
21
## Created: January 2014
22
## Version: 0.1
23
24
function [nmeas, ncon] = __tito_dim__ (P)
25
26
  outgroup = P.outgroup;
27
  ingroup = P.ingroup;
28
  
29
  ## FIXME: add checks whether indices of V and U are in ascending order
30
  ##        and at the end of the outputs/inputs
31
  
32
  if (isfield (outgroup, "V"))
33
    nmeas = numel (outgroup.V);
34
  else
35
    error ("tito_dim: missing outgroup 'V'");
36
  endif
37
  
38
  if (isfield (ingroup, "U"))
39
    ncon = numel (ingroup.U);
40
  else
41
    error ("tito_dim: missing ingroup 'U'");
42
  endif
43
44
endfunction

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks