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

« back to all changes in this revision

Viewing changes to macros/calpol/r2l.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:
92
92
Es=clean(mat2pol(E,degE));
93
93
 
94
94
 
 
95
endfunction
95
96
function [As]=mat2pol(A,degA)
96
97
[na,ma]=size(a);long=ma/(degA+1);
97
98
nb=degA+1;debut=1;fin=long;As=0*ones(na,fin);
98
99
s=poly(0,'s');
99
100
for k=1:nb ,As=As+s^(k-1)*A(:,debut:fin),debut=fin+1,fin=fin+long,end
100
101
 
 
102
endfunction
101
103
function [F,degF]=pol2mat(Fs)
102
104
degf=maxi(degree(Fs));
103
105
F=coeff(Fs);
104
 
 
105
 
 
106
 
 
 
106
endfunction