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

« back to all changes in this revision

Viewing changes to macros/percent/%cblock_f_cblock.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 a=%cblock_f_cblock(a,b)
 
2
  if na==1 then a=b,return,end
 
3
  if length(b)==1 then return,end
 
4
 
 
5
  if length(a)<>length(b) then error(6),end
 
6
  for k=2:length(a)
 
7
    setfield(k,[getfield(k,a);getfield(k,b)],a)
 
8
  end
 
9
endfunction