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

« back to all changes in this revision

Viewing changes to macros/m2sci/sci_size.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 [stk,txt,top]=sci_size()
 
2
// Copyright INRIA
 
3
txt=[]
 
4
if rhs==2 then
 
5
  stk=list('size('+stk(top-1)(1)+','+stk(top)(1)+')','0','1','1','1','?')
 
6
  top=top-1
 
7
else
 
8
  if lhs==1 then
 
9
    stk=list('size('+stk(top)(1)+')','0','1','2','1','?')
 
10
  else
 
11
    stk=list(list('size('+stk(top)(1)+')','-1','1','1','?'),..
 
12
        list('size('+stk(top)(1)+')','-1','1','1','?'))
 
13
  end
 
14
end