Skip to main content
1-Visitor
April 5, 2019
Solved

Plot Multiple Traces Simpler

  • April 5, 2019
  • 1 reply
  • 2735 views

I don't think this is possible, but hope dies last, so hence this post:

 

Is it possible to plot multiple traces in Mathcad Prime with the arguments being sourced form a single matrix or array?
Let's say I have a simple function of the form f(x): 2x + a

I have an array of 'a' values: a: [1, 2, 3, 4, 5]

 

I wish to plot 5 traces (a trace for each value in 'a') without manually adding and writing out the function five times in the plot window (there will be cases when I might need to plot many more than 5 traces, so looking for efficient methods).

 

Your responses would be greatly appreciated.

Best answer by Friengineer

Nevermind, found this:

https://community.ptc.com/t5/PTC-Mathcad/Multiple-Variable-Functions-and-Plotting-New-Critical-Limitation/m-p/73601/highlight/true#M29260

 

Seems there's not a simple way, but it is possible via a program.

1 reply

Friengineer1-VisitorAuthorAnswer
1-Visitor
April 5, 2019

Nevermind, found this:

https://community.ptc.com/t5/PTC-Mathcad/Multiple-Variable-Functions-and-Plotting-New-Critical-Limitation/m-p/73601/highlight/true#M29260

 

Seems there's not a simple way, but it is possible via a program.

ttokoro
21-Topaz I
21-Topaz I
April 5, 2019

From this forum.

stack.png

t.t.
ttokoro
21-Topaz I
21-Topaz I
April 21, 2019

ans-2.png

t.t.