<?xml version="1.0" encoding="UTF-8"?>
	<rss version="2.0"
		xmlns:content="http://purl.org/rss/1.0/modules/content/"
		xmlns:wfw="http://wellformedweb.org/CommentAPI/"
		xmlns:dc="http://purl.org/dc/elements/1.1/"
		xmlns:atom="http://www.w3.org/2005/Atom"

			>

	<channel>
		<title>Cycling 74  &#187;  Topic: cell value combinations in a matrix</title>
		<atom:link href="http://cycling74.com/forums/topic/cell-value-combinations-in-a-matrix/feed" rel="self" type="application/rss+xml" />
		<link>http://cycling74.com/forums/topic/cell-value-combinations-in-a-matrix/feed</link>
		<description></description>
		<pubDate>Wed, 19 Jun 2013 14:19:43 +0000</pubDate>
		<generator>http://bbpress.org/?v=2.2.4</generator>
		<language></language>

		
														
					
				<item>
					<guid>http://cycling74.com/forums/topic/cell-value-combinations-in-a-matrix/#post-24757</guid>
					<title><![CDATA[cell value combinations in a matrix]]></title>
					<link>http://cycling74.com/forums/topic/cell-value-combinations-in-a-matrix/#post-24757</link>
					<pubDate>Tue, 07 Mar 2006 12:32:15 +0000</pubDate>
					<dc:creator>tobias.rehn@gmx.de</dc:creator>

					<description>
						<![CDATA[
						<p>Hello there,</p>
<p>i don&#8217;t know which topic covers my question, but it seems for me that this has something to do with matrix-calculations, so i thought the jitter-list might fit.<br />
If i have a matrix with dimensions 3&#215;1 and each cell can contain a 0, 1 or 2, there are 27 (3^3) possible combinations.<br />
If you use the attached patch you get the example values printed to the max window. (index 1 &#8211; 0 0 0; index 27 &#8211; 2 2 2;)</p>
<p>So each state has its own index. Is it possible to calculate the state of the cells by the index? It should be possible as each combination shows up only once.<br />
In the above example a 17 should result in &#8220;1 2 1&#8243;. Unfortunately i need to calculate this with much more than 3^3 combinations. So i can&#8217;t use a [coll] or similar to store all combinations.<br />
The only valuable thing that came to my mind is that after 3^1 combinations the second cell is affected and after 3^2 combinations the third cell.<br />
If there were more cells after 3^4 combinations the fourth cell would begin to change its content. But here i am stuck with my others ideas for days now. Please help me.</p>
<p>
Any hints are really much appreciated. Thanks a lot.</p>
<p>Tobias</p>
<p>//<br />
max v2;<br />
#N vpatcher 635 240 1190 705;<br />
#P window setfont &#8220;Sans Serif&#8221; 9.;<br />
#P hidden message 398 233 14 196617 3;<br />
#P hidden newex 398 208 48 196617 loadbang;<br />
#P window linecount 4;<br />
#P comment 232 322 264 196617 The question is if there is a possibility to calculate the state of the number boxes by the index (and not to store all possibilities an a coll-object first)? To send in a 17 and getting 1 2 1 as the result in the 3 number boxes?;<br />
#P window linecount 1;<br />
#N vpatcher 451 454 748 686;<br />
#P outlet 148 129 15 0;<br />
#P outlet 88 129 15 0;<br />
#P outlet 28 129 15 0;<br />
#P inlet 27 42 15 0;<br />
#P pop;<br />
#P newobj 95 349 73 196617 p Reverse???;<br />
#P number 187 378 35 9 0 0 0 3 0 0 0 255 227 23 222 222 222 0 0 0;<br />
#P number 141 378 35 9 0 0 0 3 0 0 0 255 227 23 222 222 222 0 0 0;<br />
#P number 95 378 35 9 0 0 0 3 0 0 0 255 227 23 222 222 222 0 0 0;<br />
#P number 29 321 90 9 0 0 0 3 0 0 0 40 204 140 222 222 222 0 0 0;<br />
#P window setfont &#8220;Sans Serif&#8221; 12.;<br />
#P comment 187 38 21 196620 1.;<br />
#P comment 48 38 21 196620 2.;<br />
#P user panel 21 309 500 92;<br />
#X brgb 255 113 9;<br />
#X frgb 0 0 0;<br />
#X border 1;<br />
#X rounded 0;<br />
#X shadow 0;<br />
#X done;<br />
#P window setfont &#8220;Sans Serif&#8221; 9.;<br />
#P window linecount 2;<br />
#P comment 201 42 147 196617 clear the max window and then click button to reset counters!;<br />
#P button 166 41 15 0;<br />
#P window linecount 1;<br />
#P hidden newex 166 62 53 196617 t 1 0 0 0;<br />
#P toggle 29 42 15 0;<br />
#P number 29 142 90 9 0 0 0 3 0 0 0 40 204 140 222 222 222 0 0 0;<br />
#P newex 29 62 46 196617 metro 1;<br />
#N counter 0 1 27;<br />
#X flags 0 0;<br />
#P newobj 29 119 77 196617 counter 0 1 27;<br />
#P number 328 141 35 9 0 0 0 3 0 0 0 255 227 23 222 222 222 0 0 0;<br />
#N counter 0 0 2;<br />
#X flags 0 0;<br />
#P newobj 328 119 71 196617 counter 0 0 2;<br />
#P number 241 141 35 9 0 0 0 3 0 0 0 255 227 23 222 222 222 0 0 0;<br />
#N counter 0 0 2;<br />
#X flags 0 0;<br />
#P newobj 241 119 71 196617 counter 0 0 2;<br />
#P number 153 141 35 9 0 0 0 3 0 0 0 255 227 23 222 222 222 0 0 0;<br />
#N counter 0 0 2;<br />
#X flags 0 0;<br />
#P newobj 153 119 71 196617 counter 0 0 2;<br />
#P comment 63 42 100 196617 click toggle to start!;<br />
#P hidden newex 29 228 59 196617 print index;<br />
#P hidden newex 45 177 26 196617 t -;<br />
#P hidden newex 29 203 74 196617 pack 0 s 0 0 0;<br />
#P hidden newex 153 167 47 196617 gate 0 1;<br />
#P hidden newex 153 227 57 196617 pack 0 0 0;<br />
#P hidden newex 241 209 32 196617 sel 0;<br />
#P hidden newex 164 197 32 196617 sel 0;<br />
#P hidden newex 153 272 21 196617 t 0;<br />
#P hidden newex 153 249 64 196617 match 2 2 2;<br />
#P user panel 21 21 488 171;<br />
#X brgb 139 255 59;<br />
#X frgb 0 0 0;<br />
#X border 1;<br />
#X rounded 0;<br />
#X shadow 0;<br />
#X done;<br />
#P hidden fasten 2 0 20 0 158 296 14 296 14 35 34 35;<br />
#P connect 20 0 18 0;<br />
#P connect 18 0 17 0;<br />
#P connect 17 0 19 0;<br />
#P hidden connect 19 0 7 0;<br />
#P hidden connect 7 0 9 0;<br />
#P hidden connect 19 0 8 0;<br />
#P hidden connect 8 0 7 1;<br />
#P hidden fasten 12 0 7 2 158 179 66 179;<br />
#P hidden connect 21 0 17 3;<br />
#P hidden connect 14 0 7 3;<br />
#P hidden connect 16 0 7 4;<br />
#P fasten 27 0 31 0 34 342 100 342;<br />
#P connect 31 0 28 0;<br />
#P fasten 31 1 29 0 131 372 146 372;<br />
#P connect 18 0 11 0;<br />
#P connect 11 0 12 0;<br />
#P hidden connect 12 0 6 0;<br />
#P hidden connect 6 0 5 0;<br />
#P hidden connect 5 0 1 0;<br />
#P hidden connect 1 0 2 0;<br />
#P hidden connect 6 0 3 0;<br />
#P hidden connect 22 0 21 0;<br />
#P hidden connect 14 0 5 1;<br />
#P fasten 31 2 30 0 162 372 192 372;<br />
#P hidden connect 12 0 6 1;<br />
#P hidden connect 21 3 11 3;<br />
#P hidden connect 16 0 5 2;<br />
#P hidden connect 3 0 13 0;<br />
#P connect 13 0 14 0;<br />
#P hidden connect 14 0 4 0;<br />
#P hidden connect 21 2 13 3;<br />
#P hidden connect 4 0 15 0;<br />
#P connect 15 0 16 0;<br />
#P hidden connect 21 1 15 3;<br />
#P hidden connect 33 0 34 0;<br />
#P pop;</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/cell-value-combinations-in-a-matrix/#post-72119</guid>
					<title><![CDATA[Re: cell value combinations in a matrix]]></title>
					<link>http://cycling74.com/forums/topic/cell-value-combinations-in-a-matrix/#post-72119</link>
					<pubDate>Tue, 07 Mar 2006 16:04:06 +0000</pubDate>
					<dc:creator>tobias.rehn@gmx.de</dc:creator>

					<description>
						<![CDATA[
						<p>Well. As it comes from time to time.<br />
I found a solution for this problem.<br />
If anybody is interested. The patch is at the end of the message.</p>
<p>Thanks Tobias</p>
<p>//<br />
max v2;<br />
#N vpatcher 212 200 812 600;<br />
#P window setfont &#8220;Sans Serif&#8221; 9.;<br />
#P window linecount 1;<br />
#P hidden newex 205 155 37 196617 pow 2;<br />
#P hidden newex 136 155 37 196617 pow 1;<br />
#P hidden newex 51 155 37 196617 pow 0;<br />
#P comment 84 56 35 196617 index;<br />
#P number 127 56 35 9 1 0 1 3 0 0 0 221 221 221 222 222 222 0 0 0;<br />
#P number 184 232 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;<br />
#P number 110 232 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;<br />
#P number 34 232 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;<br />
#P newex 34 208 27 196617 % 3;<br />
#P newex 184 131 27 196617 &#8211; 1;<br />
#P newex 184 183 31 196617 / 16;<br />
#P number 184 103 48 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;<br />
#P newex 184 208 27 196617 % 3;<br />
#P newex 110 131 27 196617 &#8211; 1;<br />
#P newex 110 183 27 196617 / 4;<br />
#P number 110 103 48 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;<br />
#P newex 110 208 27 196617 % 3;<br />
#P newex 34 131 27 196617 &#8211; 1;<br />
#P number 34 56 48 9 1 0 1 3 0 0 0 221 221 221 222 222 222 0 0 0;<br />
#P number 34 103 48 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;<br />
#P newex 34 183 27 196617 / 1;<br />
#P comment 164 56 122 196617 number of states per cell;<br />
#P connect 3 0 2 0;<br />
#P connect 2 0 4 0;<br />
#P connect 4 0 1 0;<br />
#P connect 1 0 13 0;<br />
#P connect 13 0 14 0;<br />
#P hidden connect 17 0 19 0;<br />
#P hidden connect 19 0 1 1;<br />
#P hidden connect 17 0 13 1;<br />
#P connect 3 0 6 0;<br />
#P connect 6 0 8 0;<br />
#P connect 8 0 7 0;<br />
#P connect 7 0 5 0;<br />
#P connect 5 0 15 0;<br />
#P hidden connect 20 0 7 1;<br />
#P hidden connect 17 0 5 1;<br />
#P hidden connect 17 0 20 0;<br />
#P connect 3 0 10 0;<br />
#P connect 10 0 12 0;<br />
#P connect 12 0 11 0;<br />
#P connect 11 0 9 0;<br />
#P connect 9 0 16 0;<br />
#P hidden connect 17 0 9 1;<br />
#P hidden connect 17 0 21 0;<br />
#P hidden connect 21 0 11 1;<br />
#P pop;</p>
						]]>
					</description>

					
					
				</item>

					
		
	</channel>
	</rss>

