<?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 Subscripts in SAS/IML Software and Matrix Computations</title>
    <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Subscripts/m-p/472949#M4229</link>
    <description>&lt;P&gt;Having a matrix X with say 100 rows and 10 columns I want to subset the matrix X2 by selecting rows 1 to 5 and rows 20 to 30.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;PROC IML;

X=J(100,10,.);

CALL RANUNI(12345,X);

X2=X[1:5,]; /*WORKS*/

X2=X[{1:5 20:30},]; /*DOES NOT WORKS*/&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 25 Jun 2018 12:08:31 GMT</pubDate>
    <dc:creator>acordes</dc:creator>
    <dc:date>2018-06-25T12:08:31Z</dc:date>
    <item>
      <title>Subscripts</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Subscripts/m-p/472949#M4229</link>
      <description>&lt;P&gt;Having a matrix X with say 100 rows and 10 columns I want to subset the matrix X2 by selecting rows 1 to 5 and rows 20 to 30.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;PROC IML;

X=J(100,10,.);

CALL RANUNI(12345,X);

X2=X[1:5,]; /*WORKS*/

X2=X[{1:5 20:30},]; /*DOES NOT WORKS*/&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Jun 2018 12:08:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Subscripts/m-p/472949#M4229</guid>
      <dc:creator>acordes</dc:creator>
      <dc:date>2018-06-25T12:08:31Z</dc:date>
    </item>
    <item>
      <title>Re: Subscripts</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Subscripts/m-p/472952#M4230</link>
      <description>&lt;P&gt;you need to concatenate the two ranges together using '||'&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;X2=X[(1:5)||(20:30),];&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 25 Jun 2018 12:14:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Subscripts/m-p/472952#M4230</guid>
      <dc:creator>IanWakeling</dc:creator>
      <dc:date>2018-06-25T12:14:56Z</dc:date>
    </item>
    <item>
      <title>Re: Subscripts</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Subscripts/m-p/472953#M4231</link>
      <description>&lt;P&gt;Thanks &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/9374"&gt;@IanWakeling&lt;/a&gt;. I was behind the || operator but I haven't used it correctly in terms of the brackets.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Jun 2018 12:17:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Subscripts/m-p/472953#M4231</guid>
      <dc:creator>acordes</dc:creator>
      <dc:date>2018-06-25T12:17:23Z</dc:date>
    </item>
    <item>
      <title>Re: Subscripts</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Subscripts/m-p/472968#M4234</link>
      <description>&lt;P&gt;For more on extracting submatrices, see &lt;A href="https://blogs.sas.com/content/iml/2015/11/25/extract-elements-matrix.html" target="_self"&gt;"Extracting elements from a matrix: rows, columns, submatrices, and indices"&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Jun 2018 13:05:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Subscripts/m-p/472968#M4234</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2018-06-25T13:05:03Z</dc:date>
    </item>
  </channel>
</rss>

