<?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: combine three matrixes to make 3d spline in Mathcad</title>
    <link>https://www.ptcusercommunity.com/t5/Mathcad/combine-three-matrixes-to-make-3d-spline/m-p/1036958#M219025</link>
    <description>&lt;P&gt;As this forum is a learning opportunity have for Prime 10 or lower the following sheet that explains ranges and vectors:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.JPG" style="width: 726px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/129223i7950AA7E0B213A8E/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>Mon, 06 Oct 2025 09:42:08 GMT</pubDate>
    <dc:creator>terryhendicott</dc:creator>
    <dc:date>2025-10-06T09:42:08Z</dc:date>
    <item>
      <title>combine three matrixes to make 3d spline</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/combine-three-matrixes-to-make-3d-spline/m-p/1036925#M219018</link>
      <description>&lt;P&gt;Hello, I'm trying to draw 3D spline go through 5 points defined by matrix "a" .&lt;/P&gt;&lt;P&gt;After defining matrix of x range, y and z, these three matrixes are not able to be combined by "augment" function.&lt;/P&gt;&lt;P&gt;Are there any way to combine these three xyz matrixes? or any other way to plot xyz?&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="SK_13639906_0-1759732077635.png" style="width: 400px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/129212iFEC27C9381B7EF0B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SK_13639906_0-1759732077635.png" alt="SK_13639906_0-1759732077635.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Oct 2025 06:30:49 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/combine-three-matrixes-to-make-3d-spline/m-p/1036925#M219018</guid>
      <dc:creator>SK_13639906</dc:creator>
      <dc:date>2025-10-06T06:30:49Z</dc:date>
    </item>
    <item>
      <title>Re: combine three matrixes to make 3d spline</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/combine-three-matrixes-to-make-3d-spline/m-p/1036940#M219022</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;
&lt;P&gt;It is the age old problem&amp;nbsp; of turning a range to a vector that Prime 11 uses the vec() function.&lt;/P&gt;
&lt;P&gt;As this is a Prime 10 worksheet I have used a Range2Vec() function from an&amp;nbsp;&lt;a href="https://www.ptcusercommunity.com/t5/user/viewprofilepage/user-id/14769"&gt;@StuartBruff&lt;/a&gt;&amp;nbsp;worksheet.&amp;nbsp; Thanks Stuart.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.JPG" style="width: 471px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/129217i7A30224033192A1A/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.JPG" alt="Capture.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture2.JPG" style="width: 347px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/129218i26B831880B31B126/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture2.JPG" alt="Capture2.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Cheers Terry&lt;/P&gt;</description>
      <pubDate>Mon, 06 Oct 2025 07:35:39 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/combine-three-matrixes-to-make-3d-spline/m-p/1036940#M219022</guid>
      <dc:creator>terryhendicott</dc:creator>
      <dc:date>2025-10-06T07:35:39Z</dc:date>
    </item>
    <item>
      <title>Re: combine three matrixes to make 3d spline</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/combine-three-matrixes-to-make-3d-spline/m-p/1036958#M219025</link>
      <description>&lt;P&gt;As this forum is a learning opportunity have for Prime 10 or lower the following sheet that explains ranges and vectors:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.JPG" style="width: 726px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/129223i7950AA7E0B213A8E/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>Mon, 06 Oct 2025 09:42:08 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/combine-three-matrixes-to-make-3d-spline/m-p/1036958#M219025</guid>
      <dc:creator>terryhendicott</dc:creator>
      <dc:date>2025-10-06T09:42:08Z</dc:date>
    </item>
    <item>
      <title>Re: combine three matrixes to make 3d spline</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/combine-three-matrixes-to-make-3d-spline/m-p/1036961#M219026</link>
      <description>&lt;P&gt;What you did would have worked OK up to Prime 9 because an inline evaluation (the = right after the definition of the range) converted a range into a vector. As an evaluation should not change the data type, PTC decided to get rid of this undocumented trick of turning a range into a vector in Prime 10. It was not until Prime 11 that PTC provided a convenient alternative by implementing the new "vec" function.&lt;/P&gt;
&lt;P&gt;So in Prime 10 you have to use a user-function to convert a range into a vector, as Terry had shown, or you could have created x1 as a vector right ahead.&lt;BR /&gt;BTW, in Terry's sheet its not necessary to use "Range2Vec" when you define y1 and z2. It does no harm but "interp" creates vectors right ahead anyway if the last argument (x1) is a vector, so its not necessary to turn the vector into a vector using "Range2Vec" &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt; .&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Personally I would have chosen a different approach without defining a vector for the x-values.&lt;/P&gt;
&lt;P&gt;You may define a function f(x) which returns a 3x1 vector with the coordinates of the corresponding interpolated point.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Werner_E_0-1759743658278.png" style="width: 734px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/129224i32C9F3668C52CF17/image-dimensions/734x484?v=v2" width="734" height="484" role="button" title="Werner_E_0-1759743658278.png" alt="Werner_E_0-1759743658278.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Now you have two option for plotting the curve.&lt;/P&gt;
&lt;P&gt;1) define a range for x (! similar to what you did) and plot f(x)&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="Werner_E_1-1759743778661.png" style="width: 580px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/129225i297E7164F38256E8/image-dimensions/580x712?v=v2" width="580" height="712" role="button" title="Werner_E_1-1759743778661.png" alt="Werner_E_1-1759743778661.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;or as I would prefer&lt;/P&gt;
&lt;P&gt;2) use Prime's "CreateSpace" function 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_2-1759743869364.png" style="width: 577px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/129226iD96C3446D2934174/image-dimensions/577x699?v=v2" width="577" height="699" role="button" title="Werner_E_2-1759743869364.png" alt="Werner_E_2-1759743869364.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;P.S.: I would suggest that for future questions you say which version of Prime you are using - especially if you are not using the latest. This prevents that the answers you get are with worksheets you can't open.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Prime 10 sheet attached&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Oct 2025 09:56:21 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/combine-three-matrixes-to-make-3d-spline/m-p/1036961#M219026</guid>
      <dc:creator>Werner_E</dc:creator>
      <dc:date>2025-10-06T09:56:21Z</dc:date>
    </item>
    <item>
      <title>Re: combine three matrixes to make 3d spline</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/combine-three-matrixes-to-make-3d-spline/m-p/1036969#M219027</link>
      <description>&lt;P&gt;One additional remark: The method for a 3D interpolation of a couple of point you had chosen is limited. It only works if the x-coordinates of the points are strictly in ascending order.&lt;/P&gt;
&lt;P&gt;A more universal approach would be to make x, y and z dependent on an (ascending) parameter t.&lt;/P&gt;
&lt;P&gt;The choice of this parameter naturally also shapes the outcome! So you have to chose it depending on your needs.&lt;/P&gt;
&lt;P&gt;In the pictures below you can compare the outcome if you chose the parameter as&lt;/P&gt;
&lt;P&gt;1) the x-coordinate of the point (F, blue). this was your approach&lt;/P&gt;
&lt;P&gt;2) a simple sequential numbering of the points (G, green)&lt;/P&gt;
&lt;P&gt;3) the distance of the points (G2, orange); a quite common choice for the parameter&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Werner_E_1-1759748744590.png" style="width: 999px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/129229i66C9C6A148F4FFE9/image-size/large?v=v2&amp;amp;px=999" role="button" title="Werner_E_1-1759748744590.png" alt="Werner_E_1-1759748744590.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;Prime 10 sheet attached&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Oct 2025 11:06:05 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/combine-three-matrixes-to-make-3d-spline/m-p/1036969#M219027</guid>
      <dc:creator>Werner_E</dc:creator>
      <dc:date>2025-10-06T11:06:05Z</dc:date>
    </item>
    <item>
      <title>Re: combine three matrixes to make 3d spline</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/combine-three-matrixes-to-make-3d-spline/m-p/1037086#M219039</link>
      <description>&lt;P&gt;Thank you so much for your help!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Oct 2025 03:11:45 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/combine-three-matrixes-to-make-3d-spline/m-p/1037086#M219039</guid>
      <dc:creator>SK_13639906</dc:creator>
      <dc:date>2025-10-07T03:11:45Z</dc:date>
    </item>
    <item>
      <title>Re: combine three matrixes to make 3d spline</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/combine-three-matrixes-to-make-3d-spline/m-p/1037087#M219040</link>
      <description>&lt;P&gt;I'm using Prime10. so I can open your sheet. Thank you so much!&lt;/P&gt;</description>
      <pubDate>Tue, 07 Oct 2025 03:14:22 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/combine-three-matrixes-to-make-3d-spline/m-p/1037087#M219040</guid>
      <dc:creator>SK_13639906</dc:creator>
      <dc:date>2025-10-07T03:14:22Z</dc:date>
    </item>
    <item>
      <title>Re: combine three matrixes to make 3d spline</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/combine-three-matrixes-to-make-3d-spline/m-p/1037122#M219041</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://www.ptcusercommunity.com/t5/user/viewprofilepage/user-id/971465"&gt;@SK_13639906&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I'm using Prime10. so I can open your sheet. Thank you so much!&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Yes, I noticed that the sheet you posted was in the format of the older Prime 10 which is the reason I posted the answers with Prime 10 sheets rather than the current Prime 11. But for future questions you are on the save side if you mention yourself which version of Prime you are using.&lt;/P&gt;</description>
      <pubDate>Tue, 07 Oct 2025 09:08:07 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/combine-three-matrixes-to-make-3d-spline/m-p/1037122#M219041</guid>
      <dc:creator>Werner_E</dc:creator>
      <dc:date>2025-10-07T09:08:07Z</dc:date>
    </item>
    <item>
      <title>Re: combine three matrixes to make 3d spline</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/combine-three-matrixes-to-make-3d-spline/m-p/1037467#M219068</link>
      <description>&lt;P&gt;understand. I'll keep it in mind&lt;/P&gt;</description>
      <pubDate>Wed, 08 Oct 2025 02:28:14 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/combine-three-matrixes-to-make-3d-spline/m-p/1037467#M219068</guid>
      <dc:creator>SK_13639906</dc:creator>
      <dc:date>2025-10-08T02:28:14Z</dc:date>
    </item>
  </channel>
</rss>

