<?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: These Array Dimensions Do Not Match in Mathcad</title>
    <link>https://www.ptcusercommunity.com/t5/Mathcad/These-Array-Dimensions-Do-Not-Match/m-p/1018152#M217333</link>
    <description>&lt;P&gt;I guess that you are expecting just a single scalar result, correct?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The vector dot product is only supported for column vectors. Row vectors are seen as 1 x n matrices in Prime and the multiplication of two matrices is only defined when the number of columns in the first matrix equals the number of rows in the second matrix - hence the error message.&lt;/P&gt;
&lt;P&gt;If you insist on using row vectors instead of column vectors you have to use the transpose operator.&lt;/P&gt;
&lt;P&gt;So write M&lt;SUP&gt;T&lt;/SUP&gt;*X&lt;SUP&gt;T&lt;/SUP&gt; instead of M*X to make Prime use the vector dot product.&lt;/P&gt;
&lt;P&gt;It would also suffice to only transpose X, because M*X&lt;SUP&gt;T&lt;/SUP&gt; will be calculated as the matrix product of a 1x11 matrix with a 11x1 matrix.&lt;/P&gt;
&lt;P&gt;This matrix product actually should return a 1x1 matrix but in Prime the result is not a matrix but a simple scalar.&lt;/P&gt;
&lt;P&gt;And of course a third option is to use the vectorization operator (resulting in a 1x11 matrix as shown in ppal's reply) followed by the summation operator.&lt;/P&gt;
&lt;P&gt;Here are the three proposed ways using some dummy data&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Werner_E_0-1748621955366.png" style="width: 782px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/123712i30122252000CF43F/image-dimensions/782x250?v=v2" width="782" height="250" role="button" title="Werner_E_0-1748621955366.png" alt="Werner_E_0-1748621955366.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I second what Luc said - whenever possible always attach the worksheet itself and say which version of Prime you are using.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 30 May 2025 16:31:09 GMT</pubDate>
    <dc:creator>Werner_E</dc:creator>
    <dc:date>2025-05-30T16:31:09Z</dc:date>
    <item>
      <title>These Array Dimensions Do Not Match</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/These-Array-Dimensions-Do-Not-Match/m-p/1017962#M217320</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MATHCAD SCREENSHOT.png" style="width: 400px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/123651iD04B29BB8D72711A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MATHCAD SCREENSHOT.png" alt="MATHCAD SCREENSHOT.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Having trouble here understanding why the red box shows up with the "These array dimensions do not match." error message.&lt;/P&gt;</description>
      <pubDate>Thu, 29 May 2025 20:08:31 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/These-Array-Dimensions-Do-Not-Match/m-p/1017962#M217320</guid>
      <dc:creator>LN_11054923</dc:creator>
      <dc:date>2025-05-29T20:08:31Z</dc:date>
    </item>
    <item>
      <title>Re: These Array Dimensions Do Not Match</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/These-Array-Dimensions-Do-Not-Match/m-p/1017964#M217321</link>
      <description>&lt;P&gt;For the best help, you should attach the Prime worksheet and state which version of Prime you are using...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The multiplication of two row vectors is not defined. You can multiply a row with a column vector to get a matrix. But I guess you're not looking for that.&lt;/P&gt;
&lt;P&gt;If all you want is to simply multiply the successive elements of the two row vectors, you should vectorise the multiplication expression.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Select M*X and then take the vectorise symbol from the (lower right corner of the) Math -&amp;gt; Operators menu, to see if that works wonders.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Success!&lt;BR /&gt;Luc&lt;/P&gt;</description>
      <pubDate>Thu, 29 May 2025 20:58:05 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/These-Array-Dimensions-Do-Not-Match/m-p/1017964#M217321</guid>
      <dc:creator>LucMeekes</dc:creator>
      <dc:date>2025-05-29T20:58:05Z</dc:date>
    </item>
    <item>
      <title>Re: These Array Dimensions Do Not Match</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/These-Array-Dimensions-Do-Not-Match/m-p/1017968#M217322</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ppal_0-1748554602105.png" style="width: 400px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/123654iA6FB46FFF5882B4E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ppal_0-1748554602105.png" alt="ppal_0-1748554602105.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 29 May 2025 21:36:49 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/These-Array-Dimensions-Do-Not-Match/m-p/1017968#M217322</guid>
      <dc:creator>ppal</dc:creator>
      <dc:date>2025-05-29T21:36:49Z</dc:date>
    </item>
    <item>
      <title>Re: These Array Dimensions Do Not Match</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/These-Array-Dimensions-Do-Not-Match/m-p/1018122#M217330</link>
      <description>&lt;P&gt;Simple, your matrices should be vertical.&amp;nbsp; We both structural engineers me thinks.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SPaulis_0-1748613985593.png" style="width: 400px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/123705i3C52DF6CFD106361/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SPaulis_0-1748613985593.png" alt="SPaulis_0-1748613985593.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;a href="https://www.ptcusercommunity.com/t5/user/viewprofilepage/user-id/827211"&gt;@LN_11054923&lt;/a&gt;&amp;nbsp;I just added this example to show the usefulness of arrays for structural calcs.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would recommend for most of your structural calcs that you work with data in arrays (vertical matrices).&amp;nbsp; That is also helpful so that you can enter your data in a table, like in a BOM or like how you would normally enter data in an Excel sheet.&amp;nbsp; Arrays will be your friend!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In this example, I know what external loads I will be placing on a structure but it will be constructed in stages.&amp;nbsp; So I use a matrix of ones and zeros—or fractions for partial loads—to calculate all the stages at the same time.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;The arrow is "vectorization" and accessed by Ctrl-Shift-^.&amp;nbsp; That does an element-by-element calculation.&amp;nbsp; Otherwise a 'dot' will do '&lt;EM&gt;dot product'&lt;/EM&gt; of two arrays..&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SPaulis_3-1748615575344.png" style="width: 554px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/123710i8ACCD9F785C65FA1/image-dimensions/554x631?v=v2" width="554" height="631" role="button" title="SPaulis_3-1748615575344.png" alt="SPaulis_3-1748615575344.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 30 May 2025 14:41:51 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/These-Array-Dimensions-Do-Not-Match/m-p/1018122#M217330</guid>
      <dc:creator>SPaulis</dc:creator>
      <dc:date>2025-05-30T14:41:51Z</dc:date>
    </item>
    <item>
      <title>Re: These Array Dimensions Do Not Match</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/These-Array-Dimensions-Do-Not-Match/m-p/1018152#M217333</link>
      <description>&lt;P&gt;I guess that you are expecting just a single scalar result, correct?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The vector dot product is only supported for column vectors. Row vectors are seen as 1 x n matrices in Prime and the multiplication of two matrices is only defined when the number of columns in the first matrix equals the number of rows in the second matrix - hence the error message.&lt;/P&gt;
&lt;P&gt;If you insist on using row vectors instead of column vectors you have to use the transpose operator.&lt;/P&gt;
&lt;P&gt;So write M&lt;SUP&gt;T&lt;/SUP&gt;*X&lt;SUP&gt;T&lt;/SUP&gt; instead of M*X to make Prime use the vector dot product.&lt;/P&gt;
&lt;P&gt;It would also suffice to only transpose X, because M*X&lt;SUP&gt;T&lt;/SUP&gt; will be calculated as the matrix product of a 1x11 matrix with a 11x1 matrix.&lt;/P&gt;
&lt;P&gt;This matrix product actually should return a 1x1 matrix but in Prime the result is not a matrix but a simple scalar.&lt;/P&gt;
&lt;P&gt;And of course a third option is to use the vectorization operator (resulting in a 1x11 matrix as shown in ppal's reply) followed by the summation operator.&lt;/P&gt;
&lt;P&gt;Here are the three proposed ways using some dummy data&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Werner_E_0-1748621955366.png" style="width: 782px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/123712i30122252000CF43F/image-dimensions/782x250?v=v2" width="782" height="250" role="button" title="Werner_E_0-1748621955366.png" alt="Werner_E_0-1748621955366.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I second what Luc said - whenever possible always attach the worksheet itself and say which version of Prime you are using.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 30 May 2025 16:31:09 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/These-Array-Dimensions-Do-Not-Match/m-p/1018152#M217333</guid>
      <dc:creator>Werner_E</dc:creator>
      <dc:date>2025-05-30T16:31:09Z</dc:date>
    </item>
    <item>
      <title>Re: These Array Dimensions Do Not Match</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/These-Array-Dimensions-Do-Not-Match/m-p/1018451#M217363</link>
      <description>&lt;P&gt;Hi &lt;SPAN style="background: var(--ck-color-mention-background); color: var(--ck-color-mention-text);"&gt;&lt;a href="https://www.ptcusercommunity.com/t5/user/viewprofilepage/user-id/827211"&gt;@LN_11054923&lt;/a&gt;&lt;/SPAN&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I wanted to see if you got the help you needed.&lt;/P&gt;
&lt;P&gt;If so, please mark the appropriate reply as the Accepted Solution. It will help other members who may have the same question.&lt;BR /&gt;Of course, if you have more to share on your issue, please pursue the conversation.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;BR /&gt;Anurag&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 02 Jun 2025 20:57:26 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/These-Array-Dimensions-Do-Not-Match/m-p/1018451#M217363</guid>
      <dc:creator>anursingh</dc:creator>
      <dc:date>2025-06-02T20:57:26Z</dc:date>
    </item>
  </channel>
</rss>

