<?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: subtracting two different matrix dimensions in Mathcad</title>
    <link>https://www.ptcusercommunity.com/t5/Mathcad/subtracting-two-different-matrix-dimensions/m-p/1039987#M219240</link>
    <description>&lt;P&gt;Simply change my subscript 6 for length(x)-1&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="subtracting.png" style="width: 507px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/130110i42E8F1667E2FE39D/image-size/large?v=v2&amp;amp;px=999" role="button" title="subtracting.png" alt="subtracting.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 24 Oct 2025 15:14:39 GMT</pubDate>
    <dc:creator>AlanStevens</dc:creator>
    <dc:date>2025-10-24T15:14:39Z</dc:date>
    <item>
      <title>subtracting two different matrix dimensions</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/subtracting-two-different-matrix-dimensions/m-p/1039927#M219236</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to subtract two different matrix . one has ( 7 rows, 2 column)&amp;nbsp; and the other has (5 rows , 1 column)&amp;nbsp;&lt;/P&gt;&lt;P&gt;I know the other own is shorter so the result should be the same number in the bigger matrix. like it treat the missing numbers as zeros&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is that possible ?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="YA_10963798_0-1761304926432.png" style="width: 400px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/130092iB02011EFC6EF2859/image-size/medium?v=v2&amp;amp;px=400" role="button" title="YA_10963798_0-1761304926432.png" alt="YA_10963798_0-1761304926432.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Thank you&amp;nbsp;&lt;/P&gt;&lt;P&gt;The sheet is attached&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Oct 2025 11:23:45 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/subtracting-two-different-matrix-dimensions/m-p/1039927#M219236</guid>
      <dc:creator>YA_10963798</dc:creator>
      <dc:date>2025-10-24T11:23:45Z</dc:date>
    </item>
    <item>
      <title>Re: subtracting two different matrix dimensions</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/subtracting-two-different-matrix-dimensions/m-p/1039933#M219237</link>
      <description>&lt;P&gt;Like this?&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="subtracting.png" style="width: 522px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/130093i5288B11B75D62888/image-size/large?v=v2&amp;amp;px=999" role="button" title="subtracting.png" alt="subtracting.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Prime 11 file attached.&lt;/P&gt;</description>
      <pubDate>Fri, 24 Oct 2025 11:54:23 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/subtracting-two-different-matrix-dimensions/m-p/1039933#M219237</guid>
      <dc:creator>AlanStevens</dc:creator>
      <dc:date>2025-10-24T11:54:23Z</dc:date>
    </item>
    <item>
      <title>Re: subtracting two different matrix dimensions</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/subtracting-two-different-matrix-dimensions/m-p/1039936#M219238</link>
      <description>&lt;P&gt;Hello ,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for you reply. The thing is I need to write that as a program ( so it calculate itself without the need to change it manually )&amp;nbsp; , because in my original sheet ( p values ) can exceed 100 values and also for N&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can't manual add zeros to N every single time I use this calculation.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I appreciate your reply , though&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yusra&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Oct 2025 12:09:10 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/subtracting-two-different-matrix-dimensions/m-p/1039936#M219238</guid>
      <dc:creator>YA_10963798</dc:creator>
      <dc:date>2025-10-24T12:09:10Z</dc:date>
    </item>
    <item>
      <title>Re: subtracting two different matrix dimensions</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/subtracting-two-different-matrix-dimensions/m-p/1039957#M219239</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://www.ptcusercommunity.com/t5/user/viewprofilepage/user-id/800166"&gt;@YA_10963798&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I need to subtract two different matrix . one has ( 7 rows, 2 column)&amp;nbsp; and the other has (5 rows , 1 column)&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;No! the second in your sheet has 6 rows, not 5.&lt;/P&gt;
&lt;P&gt;And the first is not a 7x2 matrix but rather a nested 1x2 matrix whose elements are both 7x1 matrices. Guess you should have used "augment" as shown by Alan.&lt;/P&gt;
&lt;P&gt;One way to deal with your problem is to use a function which adds the necessary zero elements if necessary. If the matrix provided as argument is larger than demanded its returned unchanged:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Werner_E_0-1761313374748.png" style="width: 721px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/130096iCBF9699876E89F3A/image-dimensions/721x392?v=v2" width="721" height="392" role="button" title="Werner_E_0-1761313374748.png" alt="Werner_E_0-1761313374748.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;This function now can be used in a "subtract" function. I placed "blowUp" into "subtract" as local function so "subtract" would be self-contained.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Werner_E_7-1761314205931.png" style="width: 623px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/130103i266B5E71CD60E030/image-dimensions/623x634?v=v2" width="623" height="634" role="button" title="Werner_E_7-1761314205931.png" alt="Werner_E_7-1761314205931.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Another way could be to use nested for loops to do the job:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Werner_E_3-1761313923609.png" style="width: 635px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/130099iF7E566099499AE07/image-dimensions/635x502?v=v2" width="635" height="502" role="button" title="Werner_E_3-1761313923609.png" alt="Werner_E_3-1761313923609.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Prime 11 sheet attached&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, 24 Oct 2025 13:57:09 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/subtracting-two-different-matrix-dimensions/m-p/1039957#M219239</guid>
      <dc:creator>Werner_E</dc:creator>
      <dc:date>2025-10-24T13:57:09Z</dc:date>
    </item>
    <item>
      <title>Re: subtracting two different matrix dimensions</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/subtracting-two-different-matrix-dimensions/m-p/1039987#M219240</link>
      <description>&lt;P&gt;Simply change my subscript 6 for length(x)-1&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="subtracting.png" style="width: 507px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/130110i42E8F1667E2FE39D/image-size/large?v=v2&amp;amp;px=999" role="button" title="subtracting.png" alt="subtracting.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Oct 2025 15:14:39 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/subtracting-two-different-matrix-dimensions/m-p/1039987#M219240</guid>
      <dc:creator>AlanStevens</dc:creator>
      <dc:date>2025-10-24T15:14:39Z</dc:date>
    </item>
    <item>
      <title>Re: subtracting two different matrix dimensions</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/subtracting-two-different-matrix-dimensions/m-p/1040027#M219241</link>
      <description>&lt;P&gt;Or could it be that you intend to subtract the column vector N from EACH column in matrix p???&lt;/P&gt;
&lt;P&gt;So which of the two results below did you expect?&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Werner_E_0-1761341144675.png" style="width: 549px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/130129i36919AEE242CC088/image-dimensions/549x302?v=v2" width="549" height="302" role="button" title="Werner_E_0-1761341144675.png" alt="Werner_E_0-1761341144675.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Or maybe it wasn't an accident that you defined p as a nested vector?? After all you didn't comment on Alan's modification (augment).&lt;/P&gt;
&lt;P&gt;Maybe you had something like this in mind??&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Werner_E_1-1761341235815.png" style="width: 400px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/130130iC58D9064F7EF7CA5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Werner_E_1-1761341235815.png" alt="Werner_E_1-1761341235815.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Oct 2025 21:27:31 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/subtracting-two-different-matrix-dimensions/m-p/1040027#M219241</guid>
      <dc:creator>Werner_E</dc:creator>
      <dc:date>2025-10-24T21:27:31Z</dc:date>
    </item>
    <item>
      <title>Re: subtracting two different matrix dimensions</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/subtracting-two-different-matrix-dimensions/m-p/1040034#M219242</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;An expansion of Alan's solution that works without manual input based on size of p.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.JPG" style="width: 670px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/130134i31DABBADB6E3EEFB/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.JPG" alt="Capture.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 25 Oct 2025 15:49:05 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/subtracting-two-different-matrix-dimensions/m-p/1040034#M219242</guid>
      <dc:creator>terryhendicott</dc:creator>
      <dc:date>2025-10-25T15:49:05Z</dc:date>
    </item>
    <item>
      <title>Re: subtracting two different matrix dimensions</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/subtracting-two-different-matrix-dimensions/m-p/1040038#M219243</link>
      <description>&lt;P&gt;Your appraoch returns a wrong result if N is a matrix with equal dimensions as p (7x2 matrix in this example)&amp;nbsp; and it fails if N has more rows than p.&lt;/P&gt;
&lt;P&gt;Yusra had not explicitly clearly specified if N always is a 1-column matrix and if the rows of N can't exceed the rows of p.&lt;/P&gt;</description>
      <pubDate>Sat, 25 Oct 2025 18:03:12 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/subtracting-two-different-matrix-dimensions/m-p/1040038#M219243</guid>
      <dc:creator>Werner_E</dc:creator>
      <dc:date>2025-10-25T18:03:12Z</dc:date>
    </item>
    <item>
      <title>Re: subtracting two different matrix dimensions</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/subtracting-two-different-matrix-dimensions/m-p/1040112#M219250</link>
      <description>&lt;P&gt;Hi Werner.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Firstly sorry for the late reply. I left office before you answered , I haven't got the chance to follow up.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Actually it wasn't an incident that I wrote p as a nested vector the real calculations look like this :&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="YA_10963798_0-1761482642132.png" style="width: 400px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/130145iE0E8DCA88CB89CCF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="YA_10963798_0-1761482642132.png" alt="YA_10963798_0-1761482642132.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I need to subtract NSF values from each matrix in q .&amp;nbsp;&lt;/P&gt;&lt;P&gt;I will try the solution you submitted . Thanks a lot&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yusra&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 26 Oct 2025 12:47:13 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/subtracting-two-different-matrix-dimensions/m-p/1040112#M219250</guid>
      <dc:creator>YA_10963798</dc:creator>
      <dc:date>2025-10-26T12:47:13Z</dc:date>
    </item>
    <item>
      <title>Re: subtracting two different matrix dimensions</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/subtracting-two-different-matrix-dimensions/m-p/1040115#M219251</link>
      <description>&lt;P&gt;So q is not a 1x2 matrix of vectors as in your example but rather a 2 x 1 matrix (or at the end an n x 1 matrix.&lt;/P&gt;
&lt;P&gt;Adding units fortunately doesn't do any harm as Prime in this case seems to apply the correct unit even if we just add a dimensionless zero:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Werner_E_0-1761489485402.png" style="width: 258px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/130146iFC40617F7CC0BBEA/image-dimensions/258x105?v=v2" width="258" height="105" role="button" title="Werner_E_0-1761489485402.png" alt="Werner_E_0-1761489485402.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I further assume that, while q is a nested n x 1 vector holding column vectors the N always is just a simple column&amp;nbsp; vector. That means that none of the involved matrices will ever consist of more than 1 column. Is this correct?&lt;/P&gt;
&lt;P&gt;Additionally I assume that you wan the result being of the same structure as Q (nested vector of vectors), right?&lt;/P&gt;
&lt;P&gt;It's always best to be clear about what the task is and what you want the result to be, so there's no room for misunderstandings.&lt;/P&gt;
&lt;P&gt;If my assumptions are correct, the following could be a sensible solution to your problem:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Werner_E_1-1761491839724.png" style="width: 530px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/130147i3C75B92EDC32A6B5/image-dimensions/530x496?v=v2" width="530" height="496" role="button" title="Werner_E_1-1761491839724.png" alt="Werner_E_1-1761491839724.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I also added shorter variants which seem to fit just your special situation&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Werner_E_0-1761493966726.png" style="width: 630px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/130148iF9FAD3CD289F1EA0/image-dimensions/630x274?v=v2" width="630" height="274" role="button" title="Werner_E_0-1761493966726.png" alt="Werner_E_0-1761493966726.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Prime 11 sheet attached&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 26 Oct 2025 15:53:51 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/subtracting-two-different-matrix-dimensions/m-p/1040115#M219251</guid>
      <dc:creator>Werner_E</dc:creator>
      <dc:date>2025-10-26T15:53:51Z</dc:date>
    </item>
    <item>
      <title>Re: subtracting two different matrix dimensions</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/subtracting-two-different-matrix-dimensions/m-p/1040172#M219252</link>
      <description>&lt;P&gt;Hi, Yusra,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There are a few programming languages that do what you want, effectively making arrays conformable for some purpose.&amp;nbsp; This involves "stretching" or "shrinking" one or more arrays so that some operation can be performed on them that would otherwise raise an error.&amp;nbsp; &amp;nbsp;There are also rules that determine whether it is meaningful to make arrays conformable.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;A further nicety is that the "default" value differs across purposes.&amp;nbsp; For example, addition uses zero, multiplication uses one, string concatenation uses the empty string, and array operations use the empty array.&amp;nbsp;&lt;A href="https://en.wikipedia.org/wiki/Conformable_matrix" target="_blank"&gt;https://en.wikipedia.org/wiki/Conformable_matrix&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In some languages, this altering of array sizes to make them conformable is called broadcasting, eg in Python's NumPy.&amp;nbsp;&amp;nbsp;&lt;A href="https://numpy.org/devdocs/user/basics.broadcasting.html" target="_blank"&gt;https://numpy.org/devdocs/user/basics.broadcasting.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Werner's got you covered as far as a working solution goes, but it uses programming.&amp;nbsp; Some of us only have Mathcad Express, which does not support programming, so we have to find other ways to do things.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Appropriately, as it's nearing Halloween, I've cobbled together some functions I had lying around to create a Frankensheet in Mathcad Express 10 that seems to solve your problem.&amp;nbsp; &amp;nbsp;It's a bit of a hack, so best viewed as experimental.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Unfortunately, the lack of programming&amp;nbsp;in Mathcad Express means that Express functions can appear somewhat baroque and overly complicated.&amp;nbsp; Additionally, many useful Mathcad functions are classified as "Premium", meaning they are disabled in Express, requiring workarounds to overcome their absence.&amp;nbsp; That is not a criticism of Express, BTW, it's just a fact that more capability costs money, and Express is pretty capable in its own right.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Definitions of the broadcasting functions conform and Conform.&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="2025 10 26 C.png" style="width: 602px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/130151iA52924E01962E933/image-size/large?v=v2&amp;amp;px=999" role="button" title="2025 10 26 C.png" alt="2025 10 26 C.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Solution to your problem (an 11-vector subtracted from a nested vector of 12-vectors)&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="2025 10 26 F.png" style="width: 758px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/130150iCC7FBA051831C9CD/image-size/large?v=v2&amp;amp;px=999" role="button" title="2025 10 26 F.png" alt="2025 10 26 F.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Different forms of array conformation.&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="2025 10 26 D.png" style="width: 866px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/130149i60DCB69607D0071E/image-size/large?v=v2&amp;amp;px=999" role="button" title="2025 10 26 D.png" alt="2025 10 26 D.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Definitions of the fill, value repetition, and element repetition functions.&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="2025 10 26 E.png" style="width: 622px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/130152iDCB062F65A83D8DB/image-size/large?v=v2&amp;amp;px=999" role="button" title="2025 10 26 E.png" alt="2025 10 26 E.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any other needed functions are defined in a collapsed Area at the top of the worksheet.&amp;nbsp; &amp;nbsp;There are far more than are strictly needed for Sub, but I'm afraid I don't have the time to sift out the unnecessary ones (&lt;EM&gt;or get rid of all of the "scribbling" and "notes" I wrote along the way&lt;/EM&gt;).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Stuart&lt;/P&gt;</description>
      <pubDate>Sun, 26 Oct 2025 20:02:27 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/subtracting-two-different-matrix-dimensions/m-p/1040172#M219252</guid>
      <dc:creator>StuartBruff</dc:creator>
      <dc:date>2025-10-26T20:02:27Z</dc:date>
    </item>
    <item>
      <title>Re: subtracting two different matrix dimensions</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/subtracting-two-different-matrix-dimensions/m-p/1040173#M219253</link>
      <description>&lt;DIV&gt;Great this is exactly what I need&lt;/DIV&gt;&lt;DIV&gt;thank you so much&lt;BR /&gt;&lt;BR /&gt;&lt;/DIV&gt;</description>
      <pubDate>Sun, 26 Oct 2025 20:12:12 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/subtracting-two-different-matrix-dimensions/m-p/1040173#M219253</guid>
      <dc:creator>YA_10963798</dc:creator>
      <dc:date>2025-10-26T20:12:12Z</dc:date>
    </item>
    <item>
      <title>Re: subtracting two different matrix dimensions</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/subtracting-two-different-matrix-dimensions/m-p/1040264#M219254</link>
      <description>&lt;P&gt;Hi Stuart,&amp;nbsp;&lt;/P&gt;&lt;P&gt;It is great to hear from you.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What an amazing answer, that will solve all my future problems as well, Thankkkkkkkkkkkkkkkkkkk youuuuuuuu&lt;/P&gt;</description>
      <pubDate>Mon, 27 Oct 2025 08:59:49 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/subtracting-two-different-matrix-dimensions/m-p/1040264#M219254</guid>
      <dc:creator>YA_10963798</dc:creator>
      <dc:date>2025-10-27T08:59:49Z</dc:date>
    </item>
    <item>
      <title>Re: subtracting two different matrix dimensions</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/subtracting-two-different-matrix-dimensions/m-p/1040397#M219261</link>
      <description>&lt;P&gt;Thank you for those kind words, Yusra.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And don't go thinking your future problems are solved.&amp;nbsp; There are always new ones lurking in the background, ready to pounce when least wanted!&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":smiling_face_with_smiling_eyes:"&gt;😊&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I meant to add a couple of other functions to the worksheet that might meet some of your other needs, that is, converting between nested vectors and matrices.&amp;nbsp; In the example below, I've also used Ta to better show (IMO) a lengthy nested vector than showing the nested vectors as row vectors. As you an see, the functions are unit aware (&lt;EM&gt;as is Sub from the previous worksheet&lt;/EM&gt;).&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="2025 10 27 B.png" style="width: 628px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/130204i7F26346E265AF6C9/image-size/large?v=v2&amp;amp;px=999" role="button" title="2025 10 27 B.png" alt="2025 10 27 B.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;(&lt;EM&gt;Mathcad Express 10 worksheet attached&lt;/EM&gt;)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Stuart&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;PS.&amp;nbsp; I've also included a few new functions to fill rows or columns with values from a vector, as well as a couple that swap rows or columns.&amp;nbsp; They might prove useful to somebody.&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="2025 10 27 D.png" style="width: 769px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/130205i3CFDC12B20646EF9/image-size/large?v=v2&amp;amp;px=999" role="button" title="2025 10 27 D.png" alt="2025 10 27 D.png" /&gt;&lt;/span&gt;&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="2025 10 27 E.png" style="width: 890px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/130206iCD51B1C683365AAF/image-size/large?v=v2&amp;amp;px=999" role="button" title="2025 10 27 E.png" alt="2025 10 27 E.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Oct 2025 19:31:50 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/subtracting-two-different-matrix-dimensions/m-p/1040397#M219261</guid>
      <dc:creator>StuartBruff</dc:creator>
      <dc:date>2025-10-27T19:31:50Z</dc:date>
    </item>
    <item>
      <title>Re: subtracting two different matrix dimensions</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/subtracting-two-different-matrix-dimensions/m-p/1040398#M219262</link>
      <description>&lt;P&gt;Thank you very much Stuart. I think I need a strong coffee to learn this. I appreciate your help . Have a nice day&lt;/P&gt;</description>
      <pubDate>Mon, 27 Oct 2025 19:46:01 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/subtracting-two-different-matrix-dimensions/m-p/1040398#M219262</guid>
      <dc:creator>YA_10963798</dc:creator>
      <dc:date>2025-10-27T19:46:01Z</dc:date>
    </item>
    <item>
      <title>Re: subtracting two different matrix dimensions</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/subtracting-two-different-matrix-dimensions/m-p/1040423#M219267</link>
      <description>&lt;P&gt;Hi Yusra,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You needn't spend too much (if any) time on the fill functions; it's mainly the mat2nst and nst2mat that might prove useful to you.&amp;nbsp; I'd probably rewrite them as true Mathcad programs, both to improve&amp;nbsp;performance and conciseness and to reduce dependencies on functions that are Mathcad Express workarounds for missing Mathcad Prime functionality.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Enjoy your coffee!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Stuart&lt;/P&gt;</description>
      <pubDate>Mon, 27 Oct 2025 22:57:40 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/subtracting-two-different-matrix-dimensions/m-p/1040423#M219267</guid>
      <dc:creator>StuartBruff</dc:creator>
      <dc:date>2025-10-27T22:57:40Z</dc:date>
    </item>
  </channel>
</rss>

