<?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: Plotting steps in Mathcad</title>
    <link>https://www.ptcusercommunity.com/t5/Mathcad/Plotting-steps/m-p/582351#M183446</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://www.ptcusercommunity.com/t5/user/viewprofilepage/user-id/236200"&gt;@vyerokhin&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;A few more questions:&lt;/P&gt;
&lt;P&gt;Q1) Is there any way to plot a vertical line up, as shown in red, from the first point, using the given data? or would I need to manually enter another point to be the first point?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Q2) If my first point starts with time=0, and I want to use a log scale - Do I need to manually change the "0" to something like "0.001", or does Mathcad have a way to do this automatically?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Q3) Using the method that "&lt;SPAN class=""&gt;&lt;A id="link_42" class="lia-link-navigation lia-page-link lia-user-name-link" href="https://community.ptc.com/t5/user/viewprofilepage/user-id/66934" target="_self"&gt;Werner_E&lt;/A&gt;" showed, the curve gets&amp;nbsp;distorted when using a log scale. Is there a way around this?&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;ad Q1: I'd also vote for adding an appropriate start point to your data&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ad Q2: log scale on time axis sounds a bit strange, but even if you have time zero the plot should show up as invalid values simply are ignored by the plot.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ad Q3: Lucs method uses a data structure consisting of the corners. He is plotting one vector over another - this just plots the corners and the plot is setup to connect the points plotted - so this works equally well in a log plot, too.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My variants provide real function which can be evaluated at any time position. You may use step3(0.426)= and you get a result. You have to decide which approach fits your needs best.&lt;/P&gt;
&lt;P&gt;The reason for the distortion in your log plot is that quickplot is used in those plots. That means that we don't tell Mathcad what t is and Mathcad automatically chooses values for t at arbitrary steps for the plot. This usually works pretty fine unless you you a logarithmic abscissa. Now the values chosen by Mathcad for t are not close enough (you had chosen 100 as end value for t!) and so the plot gets somewhat distorted (less, when you chose just 100 as an end value).&lt;/P&gt;
&lt;P&gt;Two solutions which come to mind are&lt;/P&gt;
&lt;P&gt;1) define a range variable for t yourself. Unfortunately ranges only are linear spaced and you may run into the limit of number of points Mathcad is able to plot if you chose a range with too much values:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="B.jpg" style="width: 999px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/12285i3F2F45B3A9449099/image-size/large?v=v2&amp;amp;px=999" role="button" title="B.jpg" alt="B.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;2) Define a vector with logarithmic spaced values and use this for plotting - Mathcad provides a function for this. Using this method, the function call has to be vectorized (the arrow operator over step1 and step 3):&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="B2.jpg" style="width: 999px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/12286i5943CCE8929E3283/image-size/large?v=v2&amp;amp;px=999" role="button" title="B2.jpg" alt="B2.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Sun, 25 Nov 2018 12:57:41 GMT</pubDate>
    <dc:creator>Werner_E</dc:creator>
    <dc:date>2018-11-25T12:57:41Z</dc:date>
    <item>
      <title>Plotting steps</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/Plotting-steps/m-p/582173#M183417</link>
      <description>&lt;P&gt;How do I create a plot that looks like "steps", based on a table like shown in attached table and graph?&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="table.PNG" style="width: 99px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/12247i52293B039694FF3B/image-size/large?v=v2&amp;amp;px=999" role="button" title="table.PNG" alt="table.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-center" image-alt="graph.PNG" style="width: 428px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/12248i54AFF75C328D2F2A/image-size/large?v=v2&amp;amp;px=999" role="button" title="graph.PNG" alt="graph.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Nov 2018 11:01:24 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/Plotting-steps/m-p/582173#M183417</guid>
      <dc:creator>vyerokhin</dc:creator>
      <dc:date>2018-11-22T11:01:24Z</dc:date>
    </item>
    <item>
      <title>Re: Plotting steps</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/Plotting-steps/m-p/582183#M183419</link>
      <description>&lt;P&gt;Try &amp;nbsp;time=(0.1 0.2 0.2 0.5 0.5 1 1 1.3)^T. &amp;nbsp; y=(1.2 1.2 1.1 1.1 0.9 0.9 0.5 0.5)^T&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;(Note: the “^T” means take the transpose. Alternatively, enter the data directly as column vectors)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Alan&lt;/P&gt;</description>
      <pubDate>Thu, 22 Nov 2018 12:12:26 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/Plotting-steps/m-p/582183#M183419</guid>
      <dc:creator>AlanStevens</dc:creator>
      <dc:date>2018-11-22T12:12:26Z</dc:date>
    </item>
    <item>
      <title>Re: Plotting steps</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/Plotting-steps/m-p/582207#M183420</link>
      <description>&lt;P&gt;The function "linterp" is great for drawing straight lines between points.&amp;nbsp; As Alan points out to get steps you need the abcissa (y) to be double valued and the ordinate (x) to match.&amp;nbsp; (For linterp you need x to be lncreasing (no values the same), so&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;x ;= (0.1&amp;nbsp; 0.1999&amp;nbsp; 0.2&amp;nbsp; 0.2999&lt;/P&gt;
&lt;P&gt;and&lt;/P&gt;
&lt;P&gt;y:=(1.2&amp;nbsp; &amp;nbsp; 1.2&amp;nbsp; &amp;nbsp;1.1&amp;nbsp; &amp;nbsp;1.1&amp;nbsp; &amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;then&lt;/P&gt;
&lt;P&gt;Fn(xx):=linterp(x,y,xx)&lt;/P&gt;</description>
      <pubDate>Thu, 22 Nov 2018 14:37:27 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/Plotting-steps/m-p/582207#M183420</guid>
      <dc:creator>Fred_Kohlhepp</dc:creator>
      <dc:date>2018-11-22T14:37:27Z</dc:date>
    </item>
    <item>
      <title>Re: Plotting steps</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/Plotting-steps/m-p/582227#M183421</link>
      <description>&lt;P&gt;Here's another way:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="LM_20181122_PlottingSteps.png" style="width: 749px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/12261i5E8BA315FE27D5A0/image-size/large?v=v2&amp;amp;px=999" role="button" title="LM_20181122_PlottingSteps.png" alt="LM_20181122_PlottingSteps.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Prime 3.1 file attached. Runs in Express!&lt;/P&gt;
&lt;P&gt;Success!&lt;BR /&gt;Luc&lt;/P&gt;</description>
      <pubDate>Thu, 22 Nov 2018 16:59:54 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/Plotting-steps/m-p/582227#M183421</guid>
      <dc:creator>LucMeekes</dc:creator>
      <dc:date>2018-11-22T16:59:54Z</dc:date>
    </item>
    <item>
      <title>Re: Plotting steps</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/Plotting-steps/m-p/582240#M183422</link>
      <description>&lt;P&gt;Here are two alternatives for creating the desired step function using just the two vectors you defined.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="B.PNG" style="width: 579px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/12267i18EAD2D465416085/image-size/large?v=v2&amp;amp;px=999" role="button" title="B.PNG" alt="B.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Nov 2018 18:48:39 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/Plotting-steps/m-p/582240#M183422</guid>
      <dc:creator>Werner_E</dc:creator>
      <dc:date>2018-11-22T18:48:39Z</dc:date>
    </item>
    <item>
      <title>Re: Plotting steps</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/Plotting-steps/m-p/582241#M183423</link>
      <description>&lt;P&gt;Thank you so so much, everyone!!! I especially love the last 2 posts which use only the given table and do everything else automatically.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Werner_E, (or anyone else) could you please explain how to get those 2 vertical parallel lines that come right after you define stepfun1 and stepfun2?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Nov 2018 21:43:53 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/Plotting-steps/m-p/582241#M183423</guid>
      <dc:creator>vyerokhin</dc:creator>
      <dc:date>2018-11-22T21:43:53Z</dc:date>
    </item>
    <item>
      <title>Re: Plotting steps</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/Plotting-steps/m-p/582243#M183424</link>
      <description>&lt;P&gt;To Define a Program:&lt;/P&gt;
&lt;P&gt;&lt;SPAN class=" x-p-5-0"&gt;On the &lt;SPAN class=" x-uicontrol-4-0"&gt;&lt;SPAN class="cf-Sanserif-combined-Default"&gt;Math&lt;/SPAN&gt;&lt;/SPAN&gt; tab, in the &lt;SPAN class=" x-uicontrol-4-0"&gt;&lt;SPAN class="cf-Sanserif-combined-Default"&gt;Operators and Symbols&lt;/SPAN&gt;&lt;/SPAN&gt; group, click &lt;SPAN class=" x-uicontrol-4-0"&gt;&lt;SPAN class="cf-Sanserif-combined-Default"&gt;Programming&lt;/SPAN&gt;&lt;/SPAN&gt;, and then click the &lt;SPAN class=" x-uicontrol-4-0"&gt;&lt;SPAN class="cf-Sanserif-combined-Default"&gt;Program&lt;/SPAN&gt;&lt;/SPAN&gt; operator, shown as a symbol with two vertical bars. A program with an empty placeholder appears.&lt;/SPAN&gt;&lt;/P&gt;
&lt;DIV id="ToDefineAProgram-87A7FC55" class=" x-topic-8-0"&gt;
&lt;DIV class=" x-pubsImpTaskBody-3-0"&gt;
&lt;DIV&gt;
&lt;P&gt;&lt;SPAN class=" x-p-5-0"&gt;Unless you don't have a full Prime license, but use Prime Express.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class=" x-p-5-0"&gt;Success!&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class=" x-p-5-0"&gt;Luc&lt;/SPAN&gt;&lt;/P&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Thu, 22 Nov 2018 23:06:29 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/Plotting-steps/m-p/582243#M183424</guid>
      <dc:creator>LucMeekes</dc:creator>
      <dc:date>2018-11-22T23:06:29Z</dc:date>
    </item>
    <item>
      <title>Re: Plotting steps</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/Plotting-steps/m-p/582245#M183425</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://www.ptcusercommunity.com/t5/user/viewprofilepage/user-id/236200"&gt;@vyerokhin&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Thank you so so much, everyone!!! I especially love the last 2 posts which use only the given table and do everything else automatically.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Werner_E, (or anyone else) could you please explain how to get those 2 vertical parallel lines that come right after you define stepfun1 and stepfun2?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;As Luc already said those vertical double line indicates that its a program (a feature not available in the free Prime Express version). You can either insert a program via the menu as described by Luc or via the keyboard shortcut "]" (without the quotes).&lt;/P&gt;
&lt;P&gt;Here is an even shorter version which does not require creating a program and will work in Prime Express, too ("reverse" and "lookup" fortunately are not considered "premium" functions).&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="B.PNG" style="width: 657px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/12268i7191E0A917A5435F/image-size/large?v=v2&amp;amp;px=999" role="button" title="B.PNG" alt="B.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Worksheet in Prime 5 format attached.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 23 Nov 2018 00:09:02 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/Plotting-steps/m-p/582245#M183425</guid>
      <dc:creator>Werner_E</dc:creator>
      <dc:date>2018-11-23T00:09:02Z</dc:date>
    </item>
    <item>
      <title>Re: Plotting steps</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/Plotting-steps/m-p/582264#M183435</link>
      <description>&lt;P&gt;Hi. This other setup follows the usual convention for plot finite jumps, as is described in &lt;A href="https://en.wikipedia.org/wiki/Step_function" target="_self"&gt;https://en.wikipedia.org/wiki/Step_function&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards.&lt;/P&gt;
&lt;P&gt;Alvaro.&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="Clipboard01.gif" style="width: 547px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/12272i2401C4490DECB93C/image-size/large?v=v2&amp;amp;px=999" role="button" title="Clipboard01.gif" alt="Clipboard01.gif" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 23 Nov 2018 07:12:01 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/Plotting-steps/m-p/582264#M183435</guid>
      <dc:creator>AlvaroDíaz</dc:creator>
      <dc:date>2018-11-23T07:12:01Z</dc:date>
    </item>
    <item>
      <title>Re: Plotting steps</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/Plotting-steps/m-p/582333#M183440</link>
      <description>&lt;P&gt;A few more questions:&lt;/P&gt;
&lt;P&gt;Q1) Is there any way to plot a vertical line up, as shown in red, from the first point, using the given data? or would I need to manually enter another point to be the first point?&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="graph2.PNG" style="width: 454px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/12277i1C038205D06C5114/image-size/large?v=v2&amp;amp;px=999" role="button" title="graph2.PNG" alt="graph2.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Q2) If my first point starts with time=0, and I want to use a log scale - Do I need to manually change the "0" to something like "0.001", or does Mathcad have a way to do this automatically?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Q3) Using the method that "&lt;SPAN class=""&gt;&lt;A id="link_42" class="lia-link-navigation lia-page-link lia-user-name-link" href="https://community.ptc.com/t5/user/viewprofilepage/user-id/66934" target="_self"&gt;Werner_E&lt;/A&gt;" showed, the curve gets&amp;nbsp;distorted when using a log scale. Is there a way around this?&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class=""&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="graph3.PNG" style="width: 444px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/12278i10BFDB97CAD003DB/image-size/large?v=v2&amp;amp;px=999" role="button" title="graph3.PNG" alt="graph3.PNG" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 25 Nov 2018 07:37:05 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/Plotting-steps/m-p/582333#M183440</guid>
      <dc:creator>vyerokhin</dc:creator>
      <dc:date>2018-11-25T07:37:05Z</dc:date>
    </item>
    <item>
      <title>Re: Plotting steps</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/Plotting-steps/m-p/582335#M183441</link>
      <description>&lt;P&gt;Q1: "or would I need to manually enter another point to be the first point?"&lt;BR /&gt;Yes, that would be a better idea. Using that you are in control of how large the vertical axis should become.&lt;BR /&gt;&lt;BR /&gt;Q2:&lt;BR /&gt;Time on a logarithmic scale?&lt;BR /&gt;Unusual, but possible. Mathcad does NOT have a way to do this automatically. When a value can be zero, it might just as easily go negative. Where should it go?&lt;BR /&gt;So: If you know you're going to plot on a logartithmic scale, make sure no negative or zero values are present.&lt;BR /&gt;&lt;BR /&gt;Q3:&lt;BR /&gt;Is there a way around distorted curves using the autoplot feature?&lt;BR /&gt;Yes: Use &lt;A href="https://community.ptc.com/t5/PTC-Mathcad/Plotting-steps/m-p/582227#M183421" target="_blank"&gt;Luc&lt;/A&gt;'s method. It does not make use of autoplot, and has the advantage that you do NOT need to add trace expressions to include plot points (symbols) when you want to show them:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="LM_20181126_PlottingSteps.png" style="width: 452px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/12280iE99B5B856A9E6839/image-size/large?v=v2&amp;amp;px=999" role="button" title="LM_20181126_PlottingSteps.png" alt="LM_20181126_PlottingSteps.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;(Put a star on every corner)&lt;/P&gt;
&lt;P&gt;{On the other side of the coin: If you want to plot something else against time in the same plot and want to have the curves aligned, you need time1 as a separate expression for the x-axis.}&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Success!&lt;/P&gt;
&lt;P&gt;Luc&lt;/P&gt;</description>
      <pubDate>Sun, 25 Nov 2018 08:56:30 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/Plotting-steps/m-p/582335#M183441</guid>
      <dc:creator>LucMeekes</dc:creator>
      <dc:date>2018-11-25T08:56:30Z</dc:date>
    </item>
    <item>
      <title>Re: Plotting steps</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/Plotting-steps/m-p/582336#M183442</link>
      <description>&lt;P&gt;For a logarithmic horizontal axis:&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="LM_20181126_PlotPoints.png" style="width: 454px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/12279iC09E297BDF2A2117/image-size/large?v=v2&amp;amp;px=999" role="button" title="LM_20181126_PlotPoints.png" alt="LM_20181126_PlotPoints.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 25 Nov 2018 08:46:33 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/Plotting-steps/m-p/582336#M183442</guid>
      <dc:creator>LucMeekes</dc:creator>
      <dc:date>2018-11-25T08:46:33Z</dc:date>
    </item>
    <item>
      <title>Re: Plotting steps</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/Plotting-steps/m-p/582351#M183446</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://www.ptcusercommunity.com/t5/user/viewprofilepage/user-id/236200"&gt;@vyerokhin&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;A few more questions:&lt;/P&gt;
&lt;P&gt;Q1) Is there any way to plot a vertical line up, as shown in red, from the first point, using the given data? or would I need to manually enter another point to be the first point?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Q2) If my first point starts with time=0, and I want to use a log scale - Do I need to manually change the "0" to something like "0.001", or does Mathcad have a way to do this automatically?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Q3) Using the method that "&lt;SPAN class=""&gt;&lt;A id="link_42" class="lia-link-navigation lia-page-link lia-user-name-link" href="https://community.ptc.com/t5/user/viewprofilepage/user-id/66934" target="_self"&gt;Werner_E&lt;/A&gt;" showed, the curve gets&amp;nbsp;distorted when using a log scale. Is there a way around this?&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;ad Q1: I'd also vote for adding an appropriate start point to your data&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ad Q2: log scale on time axis sounds a bit strange, but even if you have time zero the plot should show up as invalid values simply are ignored by the plot.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ad Q3: Lucs method uses a data structure consisting of the corners. He is plotting one vector over another - this just plots the corners and the plot is setup to connect the points plotted - so this works equally well in a log plot, too.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My variants provide real function which can be evaluated at any time position. You may use step3(0.426)= and you get a result. You have to decide which approach fits your needs best.&lt;/P&gt;
&lt;P&gt;The reason for the distortion in your log plot is that quickplot is used in those plots. That means that we don't tell Mathcad what t is and Mathcad automatically chooses values for t at arbitrary steps for the plot. This usually works pretty fine unless you you a logarithmic abscissa. Now the values chosen by Mathcad for t are not close enough (you had chosen 100 as end value for t!) and so the plot gets somewhat distorted (less, when you chose just 100 as an end value).&lt;/P&gt;
&lt;P&gt;Two solutions which come to mind are&lt;/P&gt;
&lt;P&gt;1) define a range variable for t yourself. Unfortunately ranges only are linear spaced and you may run into the limit of number of points Mathcad is able to plot if you chose a range with too much values:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="B.jpg" style="width: 999px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/12285i3F2F45B3A9449099/image-size/large?v=v2&amp;amp;px=999" role="button" title="B.jpg" alt="B.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;2) Define a vector with logarithmic spaced values and use this for plotting - Mathcad provides a function for this. Using this method, the function call has to be vectorized (the arrow operator over step1 and step 3):&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="B2.jpg" style="width: 999px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/12286i5943CCE8929E3283/image-size/large?v=v2&amp;amp;px=999" role="button" title="B2.jpg" alt="B2.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 25 Nov 2018 12:57:41 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/Plotting-steps/m-p/582351#M183446</guid>
      <dc:creator>Werner_E</dc:creator>
      <dc:date>2018-11-25T12:57:41Z</dc:date>
    </item>
    <item>
      <title>Re: Plotting steps</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/Plotting-steps/m-p/582353#M183447</link>
      <description>&lt;P&gt;As an addendum here is an approach which similarly to Luc's creates two vectors which can be plotted one over the other and also adds the vertical line at the beginning and the horizontal line at the and.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="B.jpg" style="width: 999px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/12287i3EEA2C911FBDE969/image-size/large?v=v2&amp;amp;px=999" role="button" title="B.jpg" alt="B.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Worksheet in Prime 5 format attached.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 25 Nov 2018 13:26:22 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/Plotting-steps/m-p/582353#M183447</guid>
      <dc:creator>Werner_E</dc:creator>
      <dc:date>2018-11-25T13:26:22Z</dc:date>
    </item>
    <item>
      <title>Re: Plotting steps</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/Plotting-steps/m-p/582370#M183451</link>
      <description>&lt;P&gt;Thank you again, Luc and Werner_E!!!&lt;/P&gt;
&lt;P&gt;Luc - can you please explain your statement a little more:&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;"{On the other side of the coin: If you want to plot something else against time in the same plot and want to have the curves aligned, you need time1 as a separate expression for the x-axis.}"&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;I do want to add more curves to this plot - but I'm not understanding what issue you are talking about.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Nov 2018 01:38:10 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/Plotting-steps/m-p/582370#M183451</guid>
      <dc:creator>vyerokhin</dc:creator>
      <dc:date>2018-11-26T01:38:10Z</dc:date>
    </item>
    <item>
      <title>Re: Plotting steps</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/Plotting-steps/m-p/582372#M183452</link>
      <description>&lt;P&gt;Werner_E, Is the created "Step" variable - a matrix? I'm not familiar with superscripts - when and how to use them. Could you please explain?&lt;/P&gt;
&lt;P&gt;Thanks again.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Nov 2018 02:20:10 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/Plotting-steps/m-p/582372#M183452</guid>
      <dc:creator>vyerokhin</dc:creator>
      <dc:date>2018-11-26T02:20:10Z</dc:date>
    </item>
    <item>
      <title>Re: Plotting steps</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/Plotting-steps/m-p/582375#M183453</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://www.ptcusercommunity.com/t5/user/viewprofilepage/user-id/236200"&gt;@vyerokhin&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Werner_E, Is the created "Step" variable - a matrix? I'm not familiar with superscripts - when and how to use them. Could you please explain?&lt;/P&gt;
&lt;P&gt;Thanks again.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Correct, "makeSteps" returns a 2-column matrix. You can evaluate Step= to see what it looks like. Personally I prefer having the data compact in one variable ("Step") and in the plot I select first and second column respective by the column selector (the superscript &amp;lt;..&amp;gt;).&lt;/P&gt;
&lt;P&gt;Guess its a matter of personal taste and if you prefer having abscissa and ordinate data vectors in two separate variables similar to Lucs approach, you would do like this and return a 1 x 2 matrix whose two entries are the t- and the y-vector:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="B.png" style="width: 999px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/12292iDF09C6F17987A939/image-size/large?v=v2&amp;amp;px=999" role="button" title="B.png" alt="B.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Nov 2018 06:47:13 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/Plotting-steps/m-p/582375#M183453</guid>
      <dc:creator>Werner_E</dc:creator>
      <dc:date>2018-11-26T06:47:13Z</dc:date>
    </item>
    <item>
      <title>Re: Plotting steps</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/Plotting-steps/m-p/582412#M183455</link>
      <description>&lt;P&gt;See attachment. (Prime 4, since Prime 3.1 crashed a few times too often on this sheet)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Success!&lt;BR /&gt;Luc&lt;/P&gt;</description>
      <pubDate>Mon, 26 Nov 2018 12:39:44 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/Plotting-steps/m-p/582412#M183455</guid>
      <dc:creator>LucMeekes</dc:creator>
      <dc:date>2018-11-26T12:39:44Z</dc:date>
    </item>
    <item>
      <title>Re: Plotting steps</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/Plotting-steps/m-p/615121#M186201</link>
      <description>&lt;P&gt;Not sure if I should start a new thread for this question... Please provide feedback and forgive me if I should have.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I was wondering if there is a way to modify the "makeSteps" function in the "Steps2.mcdx" file that Werner_E provided, so that it is able to take a single point to make an "L" shaped plot?&lt;/P&gt;
&lt;P&gt;Right now, it throws back an error stating "this value must be a vector."&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you,&lt;/P&gt;
&lt;P&gt;vyerokhin&lt;/P&gt;</description>
      <pubDate>Sat, 22 Jun 2019 00:25:03 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/Plotting-steps/m-p/615121#M186201</guid>
      <dc:creator>vyerokhin</dc:creator>
      <dc:date>2019-06-22T00:25:03Z</dc:date>
    </item>
    <item>
      <title>Re: Plotting steps</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/Plotting-steps/m-p/615129#M186202</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Use of the Heaviside step function:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="staircase.jpg" style="width: 999px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/17264iA3D626C243BC6E10/image-size/large?v=v2&amp;amp;px=999" role="button" title="staircase.jpg" alt="staircase.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 22 Jun 2019 06:14:23 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/Plotting-steps/m-p/615129#M186202</guid>
      <dc:creator>-MFra-</dc:creator>
      <dc:date>2019-06-22T06:14:23Z</dc:date>
    </item>
  </channel>
</rss>

