topic Re: Problem to draw 2D graphs in ptc mathcad in PTC Mathcad
https://community.ptc.com/t5/PTC-Mathcad/Problem-to-draw-2D-graphs-in-ptc-mathcad/m-p/729405#M195969
<P>Each value of M(x) for a value of x that you are trying to plot is a 1-element vector. You cannot plot that way.</P>
<P>If you extract that element, it should work. The simple remedy should be: append</P>
<P>[ORIGIN</P>
<P>to the M(x) in the plot, this 'll take the first (and only) element of the M(x) vector.</P>
<P>But a better way is to prevent getting vectors as results for M(x). I see that v(x) also produces arrays. Haven't tracked back further.</P>
<P> </P>
<P>Success!<BR />Luc</P>Mon, 17 May 2021 07:04:07 GMTLucMeekes2021-05-17T07:04:07ZProblem to draw 2D graphs in ptc mathcad
https://community.ptc.com/t5/PTC-Mathcad/Problem-to-draw-2D-graphs-in-ptc-mathcad/m-p/729402#M195968
<PRE class="tw-data-text tw-text-large XcVN5d tw-ta" dir="ltr" data-placeholder="Translation"><SPAN class="Y2IQFc">Hello friends, I have to calculate a beam on elastic basis by the finite element method for my master thesis, I do not understand why there is an error for plotting the graph.I attached the file.Really need help because the deadline for submitting the thesis is Friday, May 28<BR /><BR /></SPAN></PRE>
<PRE id="tw-target-text" class="tw-data-text tw-text-large XcVN5d tw-ta" dir="ltr" data-placeholder="Translation"> </PRE>
<P> </P>Mon, 17 May 2021 06:43:55 GMThttps://community.ptc.com/t5/PTC-Mathcad/Problem-to-draw-2D-graphs-in-ptc-mathcad/m-p/729402#M195968AngericoEric2021-05-17T06:43:55ZRe: Problem to draw 2D graphs in ptc mathcad
https://community.ptc.com/t5/PTC-Mathcad/Problem-to-draw-2D-graphs-in-ptc-mathcad/m-p/729405#M195969
<P>Each value of M(x) for a value of x that you are trying to plot is a 1-element vector. You cannot plot that way.</P>
<P>If you extract that element, it should work. The simple remedy should be: append</P>
<P>[ORIGIN</P>
<P>to the M(x) in the plot, this 'll take the first (and only) element of the M(x) vector.</P>
<P>But a better way is to prevent getting vectors as results for M(x). I see that v(x) also produces arrays. Haven't tracked back further.</P>
<P> </P>
<P>Success!<BR />Luc</P>Mon, 17 May 2021 07:04:07 GMThttps://community.ptc.com/t5/PTC-Mathcad/Problem-to-draw-2D-graphs-in-ptc-mathcad/m-p/729405#M195969LucMeekes2021-05-17T07:04:07ZRe: Problem to draw 2D graphs in ptc mathcad
https://community.ptc.com/t5/PTC-Mathcad/Problem-to-draw-2D-graphs-in-ptc-mathcad/m-p/729412#M195970
<P>Thank you Luc for you response,i'm new to mathcad prime and i don't understand clearly that you've said but if you can give an example, i hope that will understand.</P>Mon, 17 May 2021 07:16:24 GMThttps://community.ptc.com/t5/PTC-Mathcad/Problem-to-draw-2D-graphs-in-ptc-mathcad/m-p/729412#M195970AngericoEric2021-05-17T07:16:24ZRe: Problem to draw 2D graphs in ptc mathcad
https://community.ptc.com/t5/PTC-Mathcad/Problem-to-draw-2D-graphs-in-ptc-mathcad/m-p/729416#M195971
<P>See attachment.</P>
<P> </P>
<P>Success!<BR />Luc</P>Mon, 17 May 2021 07:32:01 GMThttps://community.ptc.com/t5/PTC-Mathcad/Problem-to-draw-2D-graphs-in-ptc-mathcad/m-p/729416#M195971LucMeekes2021-05-17T07:32:01ZRe: Problem to draw 2D graphs in ptc mathcad
https://community.ptc.com/t5/PTC-Mathcad/Problem-to-draw-2D-graphs-in-ptc-mathcad/m-p/729417#M195972
<P>I've tried Luc but i've always get this error message in the plot:"<SPAN class="Y2IQFc">plot failure replace complex values and NaN inputs with real numbers"</SPAN></P>
<PRE id="tw-target-text" class="tw-data-text tw-text-large XcVN5d tw-ta" dir="ltr" data-placeholder="Translation"> </PRE>
<P> </P>Mon, 17 May 2021 07:37:50 GMThttps://community.ptc.com/t5/PTC-Mathcad/Problem-to-draw-2D-graphs-in-ptc-mathcad/m-p/729417#M195972AngericoEric2021-05-17T07:37:50ZRe: Problem to draw 2D graphs in ptc mathcad
https://community.ptc.com/t5/PTC-Mathcad/Problem-to-draw-2D-graphs-in-ptc-mathcad/m-p/729425#M195973
<P>The error messages with Mathcad have always left something to be desired. Prime is no exception to that.</P>
<P>Anyway, I now see the source of the vectors. You've type square brackets '[' and ']' where you didn't want to create a vector or matrix. Example:</P>
<P><span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="LucMeekes_1-1621237927704.png" style="width: 400px;"><img src="https://community.ptc.com/t5/image/serverpage/image-id/41674i3709899FA095680C/image-size/medium?v=v2&px=400" role="button" title="LucMeekes_1-1621237927704.png" alt="LucMeekes_1-1621237927704.png" /></span></P>
<P>In all of those places there's a real square bracket and it creates a vector or matrix.</P>
<P> </P>
<P>You should NEVER type a square bracket unless you want to create a vector or matrix. Change those square brackets to round brackets '(' and ')', and you'll see the square brackets disappear from the symbolic result. Note that Prime will display them as square brackets when it feels like, but they remain round brackets (they'll change back to round when needed.)</P>
<P> </P>
<P>Success!<BR />Luc</P>Mon, 17 May 2021 08:05:34 GMThttps://community.ptc.com/t5/PTC-Mathcad/Problem-to-draw-2D-graphs-in-ptc-mathcad/m-p/729425#M195973LucMeekes2021-05-17T08:05:34ZRe: Problem to draw 2D graphs in ptc mathcad
https://community.ptc.com/t5/PTC-Mathcad/Problem-to-draw-2D-graphs-in-ptc-mathcad/m-p/729428#M195974
<P>Y've changed all square brackets to round brackets Luc but i've got the same error in the plot and i don't know what is the problem now</P>Mon, 17 May 2021 08:13:28 GMThttps://community.ptc.com/t5/PTC-Mathcad/Problem-to-draw-2D-graphs-in-ptc-mathcad/m-p/729428#M195974AngericoEric2021-05-17T08:13:28ZRe: Problem to draw 2D graphs in ptc mathcad
https://community.ptc.com/t5/PTC-Mathcad/Problem-to-draw-2D-graphs-in-ptc-mathcad/m-p/729430#M195975
<P>I've missed one square brackets , now it worked thank you Luc.</P>
<P>God bless you!</P>
<P>Angerico Eric</P>Mon, 17 May 2021 08:16:20 GMThttps://community.ptc.com/t5/PTC-Mathcad/Problem-to-draw-2D-graphs-in-ptc-mathcad/m-p/729430#M195975AngericoEric2021-05-17T08:16:20ZRe: Problem to draw 2D graphs in ptc mathcad
https://community.ptc.com/t5/PTC-Mathcad/Problem-to-draw-2D-graphs-in-ptc-mathcad/m-p/729669#M195983
<P>Hi,</P>
<P>Enclosed is an analysis called "winkler springs FEA" that gets a moment distribution.</P>
<P><span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.JPG" style="width: 558px;"><img src="https://community.ptc.com/t5/image/serverpage/image-id/41755iC883D548FDD0A002/image-size/large?v=v2&px=999" role="button" title="Capture.JPG" alt="Capture.JPG" /></span></P>
<P>Cheers</P>
<P>Terry</P>Tue, 18 May 2021 12:25:47 GMThttps://community.ptc.com/t5/PTC-Mathcad/Problem-to-draw-2D-graphs-in-ptc-mathcad/m-p/729669#M195983terryhendicott2021-05-18T12:25:47Z