File: parametricDiffData.sci

package info (click to toggle)
scilab-plotlib 0.41-2
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 3,196 kB
  • sloc: xml: 3,308; makefile: 15
file content (12 lines) | stat: -rw-r--r-- 370 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
function [xu,yu,zu,xv,yv,zv]=parametricDiffData(X,Y,Z);

[nv,nu]=size(X);

xu=X(:,2:$)-X(:,1:$-1)+%eps;xu(:,$+1)=xu(:,$);
yu=Y(:,2:$)-Y(:,1:$-1)+%eps;yu(:,$+1)=yu(:,$);
zu=Z(:,2:$)-Z(:,1:$-1)+%eps;zu(:,$+1)=zu(:,$);

xv=X(2:$,:)-X(1:$-1,:)+%eps;xv($+1,:)=xv($,:);
yv=Y(2:$,:)-Y(1:$-1,:)+%eps;yv($+1,:)=yv($,:);
zv=Z(2:$,:)-Z(1:$-1,:)+%eps;zv($+1,:)=zv($,:);
endfunction