aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFranz Zotter <fzotter@users.sourceforge.net>2009-11-15 16:09:28 +0000
committerFranz Zotter <fzotter@users.sourceforge.net>2009-11-15 16:09:28 +0000
commit3085f960c5abed8642d28b2a8acc036708c229b8 (patch)
tree6b0fb79fa97b8bc7b7875803c5ffb0dace0517d1
parenta811b7577b93318f34ac40c952f700a64de1509c (diff)
added [mtx_meshgrid] abstraction for 2D surface-valued functions
svn path=/trunk/externals/iem/iemmatrix/; revision=12769
-rw-r--r--abs/mtx_meshgrid-help.pd23
-rw-r--r--abs/mtx_meshgrid.pd34
2 files changed, 57 insertions, 0 deletions
diff --git a/abs/mtx_meshgrid-help.pd b/abs/mtx_meshgrid-help.pd
new file mode 100644
index 0000000..e1040e2
--- /dev/null
+++ b/abs/mtx_meshgrid-help.pd
@@ -0,0 +1,23 @@
+#N canvas 439 163 841 379 10;
+#X text 482 28 part of iemmatrix;
+#X obj 65 227 mtx_print x;
+#X obj 150 227 mtx_print y;
+#X obj 28 207 t a a;
+#X msg 28 186 matrix 1 3 -1 -2 -3;
+#X msg 150 207 matrix 1 3 0.1 0.2 0.3;
+#X obj 28 287 mtx_print X;
+#X obj 112 287 mtx_print Y;
+#X obj 28 260 mtx_meshgrid;
+#X text 43 34 [mtx_meshgrid];
+#X text 166 69 creates an [X \, Y] grid on the ticks given by the x
+and y vector;
+#X text 268 138 inlet1 \, 2: row vectors x \, y;
+#X text 268 157 outlet: matrices X \, Y containing all (x \, y) value-pairs
+;
+#X connect 3 0 8 0;
+#X connect 3 1 1 0;
+#X connect 4 0 3 0;
+#X connect 5 0 2 0;
+#X connect 5 0 8 1;
+#X connect 8 0 6 0;
+#X connect 8 1 7 0;
diff --git a/abs/mtx_meshgrid.pd b/abs/mtx_meshgrid.pd
new file mode 100644
index 0000000..cb5bd18
--- /dev/null
+++ b/abs/mtx_meshgrid.pd
@@ -0,0 +1,34 @@
+#N canvas 0 0 450 300 10;
+#X obj 80 229 mtx_repmat;
+#X obj 181 232 mtx_repmat;
+#X msg 248 212 1 \$1;
+#X msg 147 209 \$1 1;
+#X obj 128 120 mtx_size;
+#X obj 206 121 mtx_size;
+#X obj 181 168 mtx;
+#X obj 96 98 t a a;
+#X obj 181 147 t b f;
+#X obj 80 259 outlet X;
+#X obj 181 258 outlet Y;
+#X obj 199 69 mtx_:;
+#X obj 96 69 mtx_:;
+#X obj 96 42 inlet x;
+#X obj 199 42 inlet y;
+#X obj 181 188 mtx_transpose;
+#X connect 0 0 9 0;
+#X connect 1 0 10 0;
+#X connect 2 0 1 1;
+#X connect 3 0 0 1;
+#X connect 4 1 8 0;
+#X connect 5 1 3 0;
+#X connect 6 0 15 0;
+#X connect 7 0 0 0;
+#X connect 7 1 4 0;
+#X connect 8 0 6 0;
+#X connect 8 1 2 0;
+#X connect 11 0 5 0;
+#X connect 11 0 6 1;
+#X connect 12 0 7 0;
+#X connect 13 0 12 0;
+#X connect 14 0 11 0;
+#X connect 15 0 1 0;