<?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: Shift values in matrix in Mathcad</title>
    <link>https://www.ptcusercommunity.com/t5/Mathcad/Shift-values-in-matrix/m-p/723299#M195451</link>
    <description>&lt;P&gt;It can be with built in functions:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MSheykman_0-1617894530035.png" style="width: 400px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/40150i5CA445C67B9D1D3A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MSheykman_0-1617894530035.png" alt="MSheykman_0-1617894530035.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 08 Apr 2021 15:09:05 GMT</pubDate>
    <dc:creator>MSheykman</dc:creator>
    <dc:date>2021-04-08T15:09:05Z</dc:date>
    <item>
      <title>Shift values in matrix</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/Shift-values-in-matrix/m-p/722980#M195407</link>
      <description>&lt;P&gt;Hey, I liked to know how to shift the values at matrix by a certain value like this.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Výstřižek.PNG" style="width: 335px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/40076iFD65CF4824312E9A/image-size/large?v=v2&amp;amp;px=999" role="button" title="Výstřižek.PNG" alt="Výstřižek.PNG" /&gt;&lt;/span&gt;&lt;BR /&gt;I have script in MathCad and matrix with hundreds values, and I need it to work automaticly. Thanks for help.&lt;/P&gt;</description>
      <pubDate>Wed, 07 Apr 2021 08:15:19 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/Shift-values-in-matrix/m-p/722980#M195407</guid>
      <dc:creator>PZ_9812318</dc:creator>
      <dc:date>2021-04-07T08:15:19Z</dc:date>
    </item>
    <item>
      <title>Re: Shift values in matrix</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/Shift-values-in-matrix/m-p/722987#M195408</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="LucMeekes_0-1617784735196.png" style="width: 400px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/40079iD31CEA346E6EC457/image-size/medium?v=v2&amp;amp;px=400" role="button" title="LucMeekes_0-1617784735196.png" alt="LucMeekes_0-1617784735196.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Success!&lt;BR /&gt;Luc&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Apr 2021 08:39:09 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/Shift-values-in-matrix/m-p/722987#M195408</guid>
      <dc:creator>LucMeekes</dc:creator>
      <dc:date>2021-04-07T08:39:09Z</dc:date>
    </item>
    <item>
      <title>Re: Shift values in matrix</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/Shift-values-in-matrix/m-p/722997#M195409</link>
      <description>&lt;P&gt;Thanks a lot, it works, you are very kind.&lt;/P&gt;</description>
      <pubDate>Wed, 07 Apr 2021 09:26:21 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/Shift-values-in-matrix/m-p/722997#M195409</guid>
      <dc:creator>PZ_9812318</dc:creator>
      <dc:date>2021-04-07T09:26:21Z</dc:date>
    </item>
    <item>
      <title>Re: Shift values in matrix</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/Shift-values-in-matrix/m-p/723037#M195410</link>
      <description>&lt;P&gt;Here are my 2 cents&lt;/P&gt;
&lt;P&gt;In contrary to Luc's "Mrot", my "Mshift" uses programming and therefore does not work in the limited Prime Express version. Also notice that Mrot and Mshift rotate/shift in different directions.&lt;/P&gt;
&lt;P&gt;Doubling the data by stacking the matrix on top of itself is bold and may be considered inefficient, but this should not be a problem with matrices of just a few hundreds of rows &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Werner_E_1-1617795549729.png" style="width: 669px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/40092iA8FF9638E02FEB96/image-dimensions/669x572?v=v2" width="669" height="572" role="button" title="Werner_E_1-1617795549729.png" alt="Werner_E_1-1617795549729.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You may also use the same function to shift both rows and columns:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Werner_E_1-1617796107403.png" style="width: 534px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/40094i8EEA7FF294689E09/image-dimensions/534x338?v=v2" width="534" height="338" role="button" title="Werner_E_1-1617796107403.png" alt="Werner_E_1-1617796107403.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;P6 worksheet attached&lt;/P&gt;</description>
      <pubDate>Wed, 07 Apr 2021 11:48:57 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/Shift-values-in-matrix/m-p/723037#M195410</guid>
      <dc:creator>Werner_E</dc:creator>
      <dc:date>2021-04-07T11:48:57Z</dc:date>
    </item>
    <item>
      <title>Re: Shift values in matrix</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/Shift-values-in-matrix/m-p/723299#M195451</link>
      <description>&lt;P&gt;It can be with built in functions:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MSheykman_0-1617894530035.png" style="width: 400px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/40150i5CA445C67B9D1D3A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MSheykman_0-1617894530035.png" alt="MSheykman_0-1617894530035.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Apr 2021 15:09:05 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/Shift-values-in-matrix/m-p/723299#M195451</guid>
      <dc:creator>MSheykman</dc:creator>
      <dc:date>2021-04-08T15:09:05Z</dc:date>
    </item>
    <item>
      <title>Re: Shift values in matrix</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/Shift-values-in-matrix/m-p/723302#M195452</link>
      <description>&lt;P&gt;Or just by mangling with indices as follows:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MSheykman_0-1617894793872.png" style="width: 400px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/40152i06274F3706B2431B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MSheykman_0-1617894793872.png" alt="MSheykman_0-1617894793872.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Apr 2021 15:13:31 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/Shift-values-in-matrix/m-p/723302#M195452</guid>
      <dc:creator>MSheykman</dc:creator>
      <dc:date>2021-04-08T15:13:31Z</dc:date>
    </item>
    <item>
      <title>Re: Shift values in matrix</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/Shift-values-in-matrix/m-p/723634#M195495</link>
      <description>&lt;P&gt;Or a pure math solution:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MSheykman_0-1618121562379.png" style="width: 400px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/40258i0124D75F77117E10/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MSheykman_0-1618121562379.png" alt="MSheykman_0-1618121562379.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 11 Apr 2021 06:13:11 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/Shift-values-in-matrix/m-p/723634#M195495</guid>
      <dc:creator>MSheykman</dc:creator>
      <dc:date>2021-04-11T06:13:11Z</dc:date>
    </item>
    <item>
      <title>Re: Shift values in matrix</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/Shift-values-in-matrix/m-p/723655#M195497</link>
      <description>&lt;P&gt;Yes, there are multiple roads that lead to Rome.&lt;/P&gt;
&lt;P&gt;I guess that for shifting/rotating the rows of a vector or matrix, first filling an nxn matrix is a bit overdone. Besides, this method doesn't work (as intended) for shifting/rotating rows of matrices....&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Luc&lt;/P&gt;</description>
      <pubDate>Sun, 11 Apr 2021 13:39:11 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/Shift-values-in-matrix/m-p/723655#M195497</guid>
      <dc:creator>LucMeekes</dc:creator>
      <dc:date>2021-04-11T13:39:11Z</dc:date>
    </item>
    <item>
      <title>Re: Shift values in matrix</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/Shift-values-in-matrix/m-p/723659#M195498</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://www.ptcusercommunity.com/t5/user/viewprofilepage/user-id/14826"&gt;@LucMeekes&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Yes, there are multiple roads that lead to Rome.&lt;/P&gt;
&lt;P&gt;I guess that for shifting/rotating the rows of a vector or matrix, first filling an nxn matrix is a bit overdone. Besides, this method doesn't work (as intended) for shifting/rotating rows of matrices....&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Luc&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;I agree that the way the idea was presented isn't very practical for actual use.&lt;/P&gt;
&lt;P&gt;But the principle can be turned into a convenient utility function which works on the rows of matrices, too &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Werner_E_0-1618151818142.png" style="width: 727px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/40262i2B76A3FAD7AD2AD2/image-dimensions/727x368?v=v2" width="727" height="368" role="button" title="Werner_E_0-1618151818142.png" alt="Werner_E_0-1618151818142.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Because the "matrix" function ignores the setting of ORIGIN, the function should also be ORIGIN-aware.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;On the other hand ... it seems that &lt;a href="https://www.ptcusercommunity.com/t5/user/viewprofilepage/user-id/395560"&gt;@PZ_9812318&lt;/a&gt;&amp;nbsp; &lt;SPAN class="VIiyi"&gt;&lt;SPAN class="JLqJ4b ChMk0b" data-language-for-alternatives="en" data-language-to-translate-into="de" data-phrase-index="0"&gt;&lt;SPAN&gt;is no longer interested in his question. &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 11 Apr 2021 14:55:26 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/Shift-values-in-matrix/m-p/723659#M195498</guid>
      <dc:creator>Werner_E</dc:creator>
      <dc:date>2021-04-11T14:55:26Z</dc:date>
    </item>
    <item>
      <title>Re: Shift values in matrix</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/Shift-values-in-matrix/m-p/723775#M195509</link>
      <description>&lt;P&gt;It is possible to generate the rotation matrix if you do not feel like filling it in with 0 and 1 manually.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MSheykman_0-1618220086216.png" style="width: 400px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/40299i28363F5DC125CF31/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MSheykman_0-1618220086216.png" alt="MSheykman_0-1618220086216.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;If you need to populate a sparse matrix - you only need to set the values that are not equal to 0, others will become zero automatically. The dimension is defined by the largest row and column indices that you used while assigning values to specific elements.&lt;/P&gt;
&lt;P&gt;j in the example contains an expression of i, that define how elements will be reordered.&lt;/P&gt;</description>
      <pubDate>Mon, 12 Apr 2021 09:41:39 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/Shift-values-in-matrix/m-p/723775#M195509</guid>
      <dc:creator>MSheykman</dc:creator>
      <dc:date>2021-04-12T09:41:39Z</dc:date>
    </item>
  </channel>
</rss>

