From 3085f960c5abed8642d28b2a8acc036708c229b8 Mon Sep 17 00:00:00 2001 From: Franz Zotter Date: Sun, 15 Nov 2009 16:09:28 +0000 Subject: added [mtx_meshgrid] abstraction for 2D surface-valued functions svn path=/trunk/externals/iem/iemmatrix/; revision=12769 --- abs/mtx_meshgrid-help.pd | 23 +++++++++++++++++++++++ abs/mtx_meshgrid.pd | 34 ++++++++++++++++++++++++++++++++++ 2 files changed, 57 insertions(+) create mode 100644 abs/mtx_meshgrid-help.pd create mode 100644 abs/mtx_meshgrid.pd (limited to 'abs') 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; -- cgit v1.2.1