summaryrefslogtreecommitdiff
path: root/texmf-dist/scripts/ketpic/ketlib/ketpic2escifiles6/Diagcelldata.sci
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2017-09-04 09:45:51 +0900
committerNorbert Preining <norbert@preining.info>2017-09-04 09:45:51 +0900
commit138f77fe71e43adc24ecb030d73df81cc5c4eb7e (patch)
treecd2d906c634149bbecd2f4bad3d540c16b23befa /texmf-dist/scripts/ketpic/ketlib/ketpic2escifiles6/Diagcelldata.sci
parent37bfdbee2c91bab6f0abd54503a0b9c669c9109e (diff)
add ketpic
Diffstat (limited to 'texmf-dist/scripts/ketpic/ketlib/ketpic2escifiles6/Diagcelldata.sci')
-rwxr-xr-xtexmf-dist/scripts/ketpic/ketlib/ketpic2escifiles6/Diagcelldata.sci15
1 files changed, 15 insertions, 0 deletions
diff --git a/texmf-dist/scripts/ketpic/ketlib/ketpic2escifiles6/Diagcelldata.sci b/texmf-dist/scripts/ketpic/ketlib/ketpic2escifiles6/Diagcelldata.sci
new file mode 100755
index 00000000..b6a53b62
--- /dev/null
+++ b/texmf-dist/scripts/ketpic/ketlib/ketpic2escifiles6/Diagcelldata.sci
@@ -0,0 +1,15 @@
+// 10.03.28
+
+function Out=Diagcelldata(Tb,Nc,Nr)
+ Tmp=Findcell(Tb,Nc,Nr);
+ C=Tmp(1);
+ Dx=Tmp(2);
+ Dy=Tmp(3);
+ Pne=C+[Dx,Dy];
+ Pnw=C+[-Dx,Dy];
+ Psw=C+[-Dx,-Dy];
+ Pse=C+[Dx,-Dy];
+ Tmp1=Listplot(Pnw,Pse);
+ Tmp2=Listplot(Pne,Psw);
+ Out=list(Tmp1,Tmp2);
+endfunction; \ No newline at end of file