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

« back to all changes in this revision

Viewing changes to macros/percent/%lss_e.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 [f1,f2,f3,f4,f5,f6,f7]=%lss_e(i,j,f)
 
2
// f= f(i,j)
 
3
// Copyright INRIA
 
4
if type(i)==10 then
 
5
  [lhs,rhs]=argn(0)
 
6
  if rhs<>2 then  error(21),end
 
7
  nams=['A','B','C','D','X0','dt']
 
8
  for k=1:prod(size(i))
 
9
    kf=find(convstr(i(k),'u')==nams)
 
10
    if kf==[] then error(21),end
 
11
    execstr('f'+string(k)+'=j(kf+1)')
 
12
  end
 
13
  return
 
14
end
 
15
if type(i)==4 then i=find(i),end
 
16
if type(j)==4 then j=find(j),end
 
17
[a,b,c,d,x0,dom]=f(2:7)
 
18
f1=tlist(['lss','A','B','C','D','X0','dt'],a,b(:,j),c(i,:),d(i,j),x0,dom)
 
19
if f1('D')==[] then f1=[],end
 
20
 
 
21