~ubuntu-branches/ubuntu/hoary/scilab/hoary

« back to all changes in this revision

Viewing changes to macros/percent/%l_isequal.sci

  • Committer: Bazaar Package Importer
  • Author(s): Torsten Werner
  • Date: 2005-01-09 22:58:21 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20050109225821-473xr8vhgugxxx5j
Tags: 3.0-12
changed configure.in to build scilab's own malloc.o, closes: #255869

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
function r=%l_isequal(x1,varargin)
 
2
  n=size(varargin)
 
3
  if n==0 then error('isequal requires at least two input arguments'),end
 
4
 
 
5
  r=%t
 
6
  m=lstsize(x1)
 
7
 
 
8
  for l=1:m
 
9
    for k=1:n
 
10
      r=r&isequal(getfield(l,x1),getfield(l,varargin(k)))
 
11
      if ~r then break,end
 
12
    end
 
13
  end
 
14
endfunction