help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Splines


From: Kearan Mc Pherson
Subject: Splines
Date: Wed, 1 Oct 2008 11:26:02 +0200

Hi

I plot a 3D graph using two data.dat files like this :

  d1 = load graph.dat ;
 d2 = load graph2.dat ;
 d1 = sortrows (d1);
 d2 = sortrows (d2);

 x = unique ([d1(:,1); d2(:,1)]);
 y = interp1 (d1(:,1), d1(:,2), x, "cubic", "extrap");
 z = interp1 (d2(:,1), d2(:,2), x, "cubic", "extrap");

 plot3 (x, y, z);

I would like to use splines, can anyone please assist me regarding this matter, as i'm new to octave and gnuplot. thanks and regards

reply via email to

[Prev in Thread] Current Thread [Next in Thread]