Community Tip - Stay updated on what is happening on the PTC Community by subscribing to PTC Community Announcements. X
Mathcad Prime 9
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
Solved! Go to Solution.
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
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
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