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

« back to all changes in this revision

Viewing changes to demos/fec/fec.ex1

  • 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
 
// A small example of MESH Creation 
2
 
// and visualisation of a linear on triangles function 
3
 
// Copyright INRIA
4
 
getf('SCI/demos/fec/macros.sci')
5
 
xbasc();
6
 
N=20;
7
 
n=1:N;
8
 
x=cos(n*2*%pi/N);
9
 
y=sin(n*2*%pi/N);
10
 
noeuds=N;
11
 
noeul=[(1:(N))',x',y',0*ones(N,1)];
12
 
noeul=[noeul;(N+1),0,0,0];
13
 
trianl=[];
14
 
for i=1:(N-1),trianl=[trianl;i,i,i+1,N+1,0];end
15
 
trianl=[trianl;N,N,1,N+1,0];
16
 
triang=N;
17
 
rect=[-1.2,-1.2,1.2,1.2];
18
 
fec(noeul(:,2),noeul(:,3),trianl,(1:N+1)',"030"," ",rect);
19
 
meshvisu(3,rect);
20
 
 
21
 
 
22
 
 
23
 
 
24