🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: git.math.symbolic
Article #1

scattered data

#1
From: Jose A. Martinez Pontevedra
Date: Thu, 14 Oct 1999 00:00
59 lines
2653 bytes
hi

i want fitting a scattered data whit spline.
I have mathlab and i had used a nag library (E02DDF - E02DFF), but i have
problems.
I don't know, if the problem is in my source or in the selcted nag
library. 

Could you check my code, or propouse the new method?
Thanking you in advance.

Please use for reply my e-mail: qnjose@correo.usc.es
Jose A. Martinez Pontevedra
Universidad de Santiago de Compostela
Dpto de Quimica Analtica, Nutricion y Bromatologia

---------------------------------------------------
%Coordenada X
x=[0.0000 3.6742 5.5114 1.8371 1.8371 0.0000 3.6742 5.5114 1.8371 7.3485
...
   3.6742 0.0000 0.0000 1.8371 0.0000 4.9235 4.9235 2.4250 2.4250 0.0000
...
   0.0000 4.8500 1.2492 1.2492 2.425]';

%Coordenada Y
y=[0.5774 0.0000 -0.5774 -0.5774 -0.1925 -0.5774 0.5774 0.5774 0.1925
0.0000 ...
      -0.5774 0.2887 -0.2887 0.5774 0.0000 0.5774 -0.5774 0.5774 -0.5774
0.1963 ...
      -0.1963 0.0000 0.3408 -0.3408 -0.0086]';

%Coordenada Z
f=[1.75 1.85 1.91 11.31 2.71 39.97 1.64 1.67 1.77 1.67 ...
      1.96 2.16 25.24 1.96 3.83 1.67 1.95 1.68 5.87 2.54 ...
      19.24 1.67 1.76 9.47 1.88]';

Puntos=25;
s=1;
w=ones(25,1);
lamda=zeros(12,1);
mu=zeros(12,1);

%evaluation of a fitted bicubic splines with automatic knot placemnent,
scattered data
[lamda,mu,c,fp,rank,wrk,iwrk,nx,ny,ifail] = e02ddf(x,y,f,s,lamda,mu);

%personal data

     x1=[0.00 1.00 2.00 3.00 4.00 5.00 7.00]';
     y1=[-0.60 -0.30 -0.10 0.10 0.30 0.60]';

lamda1=lamda';
mu1=mu';
c1=c';

%Evaluation of a fitted bicubic spline at a mesh of points
	[ff,ifail] = e02dff(x1,y1,lamda1,mu1,c1)

------------------------------------------------------------
Technical Details
Message-ID: <Pine.GSO.3.96.991014210105.20567A-100000@uscmail.usc.es>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 106e3f,425f3222e33e8a18,start
X-Google-Attributes: gid106e3f,public
X-Google-Thread: f762d,425f3222e33e8a18,start
X-Google-Attributes: gidf762d,public
X-Google-Thread: 10c033,425f3222e33e8a18,start
X-Google-Attributes: gid10c033,public
X-Google-Thread: 10d67e,425f3222e33e8a18,start
X-Google-Attributes: gid10d67e,public
From: "Jose A. Martinez Pontevedra" <qnjose@uscmail.usc.es>
Subject: scattered data
Date: 1999/10/14
Message-ID: <Pine.GSO.3.96.991014210105.20567A-100000@uscmail.usc.es>
X-Deja-AN: 536775100
Content-Type: TEXT/PLAIN; charset=US-ASCII
X-Complaints-To: abuse@usc.es
X-Trace: sansecus3.usc.es 939928396 18571 193.144.75.8 (14 Oct 1999 19:13:16 GMT)
Organization: Universidade de Santiago de Compostela
Mime-Version: 1.0
NNTP-Posting-Date: 14 Oct 1999 19:13:16 GMT
Newsgroups: git.math.symbolic,comp.soft-sys.matlab,aus.mathematics,sci.math.symbolic