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

« back to all changes in this revision

Viewing changes to macros/mtlb/mtlb_full.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 x=mtlb_full(y)
 
2
// Copyright INRIA
 
3
// Emulation function for full() Matlab function
 
4
// V.C.
 
5
if type(y)==1 then 
 
6
  x=full(y)
 
7
elseif type(y)==10 then 
 
8
  tmp = asciimat(y)
 
9
  tmp=full(tmp)
 
10
  x=[];
 
11
  for k=1:size(tmp,1)
 
12
    x=[x;ascii(tmp(k,:))]
 
13
  end
 
14
elseif type(y)==4 then 
 
15
  x=full(bool2s(y))
 
16
end
 
17
endfunction
 
18
 
 
19