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

« back to all changes in this revision

Viewing changes to macros/scicos_blocks/Threshold/NEGTOPOS_f.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,y,typ]=NEGTOPOS_f(job,arg1,arg2)
 
2
// Copyright INRIA
 
3
x=[];y=[];typ=[];
 
4
select job
 
5
case 'plot' then
 
6
  standard_draw(arg1)
 
7
case 'getinputs' then
 
8
  [x,y,typ]=standard_inputs(arg1)
 
9
case 'getoutputs' then
 
10
  [x,y,typ]=standard_outputs(arg1)
 
11
case 'getorigin' then
 
12
  [x,y]=standard_origin(arg1)
 
13
case 'set' then
 
14
  x=arg1;
 
15
  x.model.firing=-1 //compatibility
 
16
case 'define' then
 
17
  model=scicos_model()
 
18
  model.sim=list('zcross',1)
 
19
  model.nzcross=1
 
20
  model.in=1
 
21
  model.evtout=1
 
22
  model.rpar=[-1;-1;0;-1]
 
23
  model.blocktype='z'
 
24
  model.firing=-1
 
25
  model.dep_ut=[%t %f]
 
26
 
 
27
  gr_i=['xstringb(orig(1),orig(2),'' - to + '',sz(1),sz(2),''fill'');']
 
28
  x=standard_define([2 2],model,[],gr_i)
 
29
end
 
30
endfunction