cancel
Showing results for
Did you mean:
cancel
Showing results for
Did you mean:

Community Tip - Want the oppurtunity to discuss enhancements to PTC products? Join a working group! X

6-Contributor

## Plotting a function with multiple solutions in one trace

Hello,

I am trying to plot a function which has a matrix as one of its variables.  I want to plot the function as one trace so that when the matrix grows or shirks with length, I don't have to add or subtract plot traces.

I made a simple example of oxygen displacement in a room with a range of different asphyxiant gas (3x1 matrix) for a given room and ventilation rate.

I could display the result of all three curves by adding three traces and use the matrix index...but I want to avoid this manual step and automatic plot all the curves, let's say... when I modify the asphyxiant gas rate to be a 6x1 matrix or a 2x1 matrix. I think I've seen this done before, but don't recall where.

Thanks,

Regards,

Colin

1 ACCEPTED SOLUTION

Accepted Solutions
24-Ruby V
(To:CD_9999850)

Here is one way to do it.

Its not a functional approach but rather plots a matrix over a time vector (waterfall plot)

Prime 9 file atached

3 REPLIES 3
24-Ruby V
(To:CD_9999850)

Here is one way to do it.

Its not a functional approach but rather plots a matrix over a time vector (waterfall plot)

Prime 9 file atached

6-Contributor
(To:Werner_E)

Ah this jogged my memory; I do recall the use of the transpose "T".

This solution worked as I requested....it worked for the example and for the actual engineering evaluation I'm working on today.

Thanks for the very quick, almost real time response Werner_E!  Come to think of it you helped with the first question I ever posted... I think sometime last year, you are an asset to the Mathcad community.

-Colin

20-Turquoise
(To:CD_9999850)

Announcements
Top Tags