summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/pgfplots/plotdata/pgfplotscontourmatlabexample.m
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/doc/latex/pgfplots/plotdata/pgfplotscontourmatlabexample.m')
-rw-r--r--Master/texmf-dist/doc/latex/pgfplots/plotdata/pgfplotscontourmatlabexample.m21
1 files changed, 21 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/latex/pgfplots/plotdata/pgfplotscontourmatlabexample.m b/Master/texmf-dist/doc/latex/pgfplots/plotdata/pgfplotscontourmatlabexample.m
new file mode 100644
index 00000000000..44c28b43ad9
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/pgfplots/plotdata/pgfplotscontourmatlabexample.m
@@ -0,0 +1,21 @@
+A=[ 0 0 0 0;
+ 1.0000 0 0 0;
+ 2.0000 0 0 0;
+ 3.0000 0 0 0;
+ 0 1.0000 0 0;
+ 1.0000 1.0000 0.6000 0.6000;
+ 2.0000 1.0000 0.7000 0.7000;
+ 3.0000 1.0000 0.5000 0.5000;
+ 0 2.0000 0 0;
+ 1.0000 2.0000 0.7000 0.7000;
+ 2.0000 2.0000 0.8000 0.8000;
+ 3.0000 2.0000 0.5000 0.5000];
+[x,y]=meshgrid(1:3,1:4);
+x(:) = A(:,1);
+y(:) = A(:,2);
+z=x;
+z(:) = A(:,3);
+
+data = contour(x,y,z,3);
+data=data';
+save 'pgfplotscontourmatlabexample.dat' data -ASCII