<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Simple Matrix Extraction in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Simple-Matrix-Extraction/m-p/7950#M7944</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Matt's pointing you in the right direction.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here's a more specific set of documentation on &lt;A href="http://www.jmp.com/support/help/Matrices.shtml#370392"&gt;Subsetting Matrices&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The answer at the end of the book is that a subscript argument of zero selects all rows or columns.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: Courier;"&gt;P&lt;SPAN style="color: #011993;"&gt;=&lt;/SPAN&gt;&lt;STRONG&gt;[&lt;/STRONG&gt;&lt;SPAN style="color: #009193;"&gt;&lt;STRONG&gt;1&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="color: #009193;"&gt;&lt;STRONG&gt;2&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="color: #009193;"&gt;&lt;STRONG&gt;3&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #011993;"&gt;,&lt;/SPAN&gt; &lt;SPAN style="color: #009193;"&gt;&lt;STRONG&gt;4&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="color: #009193;"&gt;&lt;STRONG&gt;5&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="color: #009193;"&gt;&lt;STRONG&gt;6&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #011993;"&gt;,&lt;/SPAN&gt; &lt;SPAN style="color: #009193;"&gt;&lt;STRONG&gt;7&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="color: #009193;"&gt;&lt;STRONG&gt;8&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="color: #009193;"&gt;&lt;STRONG&gt;9&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt;]&lt;/STRONG&gt;&lt;SPAN style="color: #011993;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: Courier;"&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: Courier;"&gt;A&lt;SPAN style="color: #011993;"&gt;=P&lt;/SPAN&gt;&lt;STRONG&gt;[&lt;/STRONG&gt;&lt;SPAN style="color: #009193;"&gt;&lt;STRONG&gt;0&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #011993;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #009193;"&gt;&lt;STRONG&gt;2&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt;]&lt;/STRONG&gt;&lt;SPAN style="color: #011993;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Jeff&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 09 Jan 2014 19:45:49 GMT</pubDate>
    <dc:creator>Jeff_Perkinson</dc:creator>
    <dc:date>2014-01-09T19:45:49Z</dc:date>
    <item>
      <title>Simple Matrix Extraction</title>
      <link>https://community.jmp.com/t5/Discussions/Simple-Matrix-Extraction/m-p/7948#M7942</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Quick question about extracting a single column from a large matrix into a submatrix. Just as an example below: I want extract the second column from matrix P ( I want to pull out 2,5,8) and place it into a submatrix called A. However when I try to attempt it in this way, I am getting invalid matrix token error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;P=[1 2 3, 4 5 6, 7 8 9];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for(i=1,i&amp;lt;=3,i = i + 1,&lt;/P&gt;&lt;P&gt;&amp;nbsp; A = [P[i,2]];&lt;/P&gt;&lt;P&gt;);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Should be really simple, but for some reason it is stumping me. Thanks for the help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jan 2014 19:19:07 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Simple-Matrix-Extraction/m-p/7948#M7942</guid>
      <dc:creator>mjaisit</dc:creator>
      <dc:date>2014-01-09T19:19:07Z</dc:date>
    </item>
    <item>
      <title>Re: Simple Matrix Extraction</title>
      <link>https://community.jmp.com/t5/Discussions/Simple-Matrix-Extraction/m-p/7949#M7943</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;see:&lt;/P&gt;&lt;H1 class="entry-title"&gt;JSL Tip: Use Matrices Instead of Lists&lt;/H1&gt;&lt;DIV class="author-thumb"&gt;Xan Gregg &lt;SPAN class="date"&gt;&lt;ABBR class="published" title="2009-06-15T09:26:00-0500"&gt;June 15, 2009&lt;/ABBR&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="author-thumb"&gt;&lt;SPAN class="date"&gt;&lt;SPAN class="date"&gt;&lt;A href="http://www.jmp.com/support/help/Matrix_Functions.shtml"&gt;http://www.jmp.com/support/help/Matrix_Functions.shtml&lt;/A&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;P&gt;&lt;A href="http://blogs.sas.com/content/jmp/2009/06/15/jsl-tip-use-matrices-instead-of-lists/"&gt;http://blogs.sas.com/content/jmp/2009/06/15/jsl-tip-use-matrices-instead-of-lists/&lt;/A&gt;&lt;/P&gt;&lt;SPAN class="date"&gt;&lt;SPAN class="date"&gt;&lt;A href="http://www.jmp.com/support/help/Matrix_Functions.shtml"&gt;http://www.jmp.com/support/help/Matrix_Functions.shtml&lt;/A&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;P&gt;&lt;SPAN class="date"&gt;also:&lt;/SPAN&gt;&lt;/P&gt;&lt;SPAN class="date"&gt;&lt;A href="http://www.jmp.com/support/help/Matrix_Functions.shtml"&gt;http://www.jmp.com/support/help/Matrix_Functions.shtml&lt;/A&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="author-thumb"&gt;&lt;SPAN class="date"&gt;&lt;A href="http://www.jmp.com/support/help/Matrices.shtml"&gt;http://www.jmp.com/support/help/Matrices.shtml&lt;/A&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="author-thumb"&gt;&lt;SPAN class="date"&gt;&lt;/SPAN&gt; &lt;/DIV&gt;&lt;DIV class="author-thumb"&gt;&lt;SPAN class="date"&gt;&lt;/SPAN&gt; &lt;/DIV&gt;&lt;DIV class="author-thumb"&gt;&lt;SPAN class="date"&gt;&lt;SPAN class="date"&gt;p=[1 2 3, 4 5 6, 7 8 9&lt;/SPAN&gt;&lt;SPAN class="date"&gt;&lt;/SPAN&gt;];&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="author-thumb"&gt;&lt;SPAN class="date"&gt;&lt;/SPAN&gt; &lt;/DIV&gt;&lt;DIV class="author-thumb"&gt;&lt;SPAN class="date"&gt;&lt;SPAN class="date"&gt;A &lt;/SPAN&gt;&lt;SPAN class="date"&gt;&lt;/SPAN&gt;= J(1,3);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="author-thumb"&gt;&lt;SPAN class="date"&gt;for(i=1,i&amp;lt;-=3,i++&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="author-thumb"&gt;&lt;SPAN class="date"&gt;&lt;SPAN class="date"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="date"&gt;&lt;/SPAN&gt;A&lt;I&gt; = P[i,2[;&lt;/I&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="author-thumb"&gt;&lt;SPAN class="date"&gt;);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="author-thumb"&gt;&lt;SPAN class="date"&gt;A&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="author-thumb"&gt;&lt;SPAN class="date"&gt;&lt;/SPAN&gt; &lt;/DIV&gt;&lt;DIV class="author-thumb"&gt;&lt;SPAN class="date"&gt;Best regards,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="author-thumb"&gt;&lt;SPAN class="date"&gt;-Matt&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jan 2014 19:34:07 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Simple-Matrix-Extraction/m-p/7949#M7943</guid>
      <dc:creator>mattflynn</dc:creator>
      <dc:date>2014-01-09T19:34:07Z</dc:date>
    </item>
    <item>
      <title>Re: Simple Matrix Extraction</title>
      <link>https://community.jmp.com/t5/Discussions/Simple-Matrix-Extraction/m-p/7950#M7944</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Matt's pointing you in the right direction.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here's a more specific set of documentation on &lt;A href="http://www.jmp.com/support/help/Matrices.shtml#370392"&gt;Subsetting Matrices&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The answer at the end of the book is that a subscript argument of zero selects all rows or columns.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: Courier;"&gt;P&lt;SPAN style="color: #011993;"&gt;=&lt;/SPAN&gt;&lt;STRONG&gt;[&lt;/STRONG&gt;&lt;SPAN style="color: #009193;"&gt;&lt;STRONG&gt;1&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="color: #009193;"&gt;&lt;STRONG&gt;2&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="color: #009193;"&gt;&lt;STRONG&gt;3&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #011993;"&gt;,&lt;/SPAN&gt; &lt;SPAN style="color: #009193;"&gt;&lt;STRONG&gt;4&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="color: #009193;"&gt;&lt;STRONG&gt;5&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="color: #009193;"&gt;&lt;STRONG&gt;6&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #011993;"&gt;,&lt;/SPAN&gt; &lt;SPAN style="color: #009193;"&gt;&lt;STRONG&gt;7&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="color: #009193;"&gt;&lt;STRONG&gt;8&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="color: #009193;"&gt;&lt;STRONG&gt;9&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt;]&lt;/STRONG&gt;&lt;SPAN style="color: #011993;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: Courier;"&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: Courier;"&gt;A&lt;SPAN style="color: #011993;"&gt;=P&lt;/SPAN&gt;&lt;STRONG&gt;[&lt;/STRONG&gt;&lt;SPAN style="color: #009193;"&gt;&lt;STRONG&gt;0&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #011993;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #009193;"&gt;&lt;STRONG&gt;2&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt;]&lt;/STRONG&gt;&lt;SPAN style="color: #011993;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Jeff&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jan 2014 19:45:49 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Simple-Matrix-Extraction/m-p/7950#M7944</guid>
      <dc:creator>Jeff_Perkinson</dc:creator>
      <dc:date>2014-01-09T19:45:49Z</dc:date>
    </item>
    <item>
      <title>Re: Simple Matrix Extraction</title>
      <link>https://community.jmp.com/t5/Discussions/Simple-Matrix-Extraction/m-p/7951#M7945</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks guys for the quick help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Jan 2014 01:06:19 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Simple-Matrix-Extraction/m-p/7951#M7945</guid>
      <dc:creator>mjaisit</dc:creator>
      <dc:date>2014-01-10T01:06:19Z</dc:date>
    </item>
  </channel>
</rss>

