~ubuntu-branches/ubuntu/karmic/scilab/karmic

« back to all changes in this revision

Viewing changes to macros/metanet/con_nodes.sci

  • Committer: Bazaar Package Importer
  • Author(s): Torsten Werner
  • Date: 2002-03-21 16:57:43 UTC
  • Revision ID: james.westby@ubuntu.com-20020321165743-e9mv12c1tb1plztg
Tags: upstream-2.6
ImportĀ upstreamĀ versionĀ 2.6

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
function ns=con_nodes(i,g)
 
2
// Copyright INRIA
 
3
[lhs,rhs]=argn(0)
 
4
if rhs<>2 then error(39), end
 
5
// check i
 
6
if prod(size(i))<>1 then
 
7
  error('First argument must be a scalar')
 
8
end
 
9
// checking of g is made in connex
 
10
[l,nc]=connex(g)
 
11
ns=m6concom(i,nc)