Community Tip - Have a PTC product question you need answered fast? Chances are someone has asked it before. Learn about the community search. X
Hello,
Sorry I know this issue has been raised before and I have searched but the proposed solution to that specific problem was beyond my knowledge of mathematical languages.
I have defined a range (via step range) to give me a list of values to input into an equation to allow me to graph the result. This worked fine in previous versions but since upgrading to 10 it has become broken. I understand that its something to do with how Mathcad Prime defines vectors now or something but I can't seem to get this to now work. Any pointers would be greatly appreciated. I have attached a few screenshots of the problemSince the update I get these errors
Before the update...working fine and allowing me to plot on a graph
Solved! Go to Solution.
1) The error in the definition of Wall stems from the fact that you changed the unit in the result to mm. If you let Prime chose the unit (usually meter) the error disappears.
Unit manually changed to mm
Unit at the end completely deleted and chosen automatically:
This behaviour is the very same in Prime 9 (actually the screen shots are from P9) and so your last screenshot sure stems from a version prior to Prime 9, right? I just tested with Prime 6 and here changing the display unit works OK and does not throw an error.
2) This is the main problem. Up to Prime 9 what you did (defining a range and evaluating it in the same region) converted the range into a vector. Thats the reason your last expression works. This was broken by PTC on purpose with version 10. So even when you use inline evaluation, the variable Wall remains being a range and not a vector.
So you have to make "Wall" a vector using a different method because unfortunately PTC did not provide any means to do so (they promised to deliver in next version).
One way is to define Wall as a vector right ahead.:
or a little bit more sophisticated using start, end value and step width to determine the last index (56)
Another way is to define Wall as a range as you did (without using the inline evaluation) and then use a utility function which turns a range into a vector. Some of that kind of functions were posted here in the forum, some more, some less sophisticated.
Here is a simple one:
For future question: Please always attach your worksheet!
Attached sheet is in Prime 9 format.
1) The error in the definition of Wall stems from the fact that you changed the unit in the result to mm. If you let Prime chose the unit (usually meter) the error disappears.
Unit manually changed to mm
Unit at the end completely deleted and chosen automatically:
This behaviour is the very same in Prime 9 (actually the screen shots are from P9) and so your last screenshot sure stems from a version prior to Prime 9, right? I just tested with Prime 6 and here changing the display unit works OK and does not throw an error.
2) This is the main problem. Up to Prime 9 what you did (defining a range and evaluating it in the same region) converted the range into a vector. Thats the reason your last expression works. This was broken by PTC on purpose with version 10. So even when you use inline evaluation, the variable Wall remains being a range and not a vector.
So you have to make "Wall" a vector using a different method because unfortunately PTC did not provide any means to do so (they promised to deliver in next version).
One way is to define Wall as a vector right ahead.:
or a little bit more sophisticated using start, end value and step width to determine the last index (56)
Another way is to define Wall as a range as you did (without using the inline evaluation) and then use a utility function which turns a range into a vector. Some of that kind of functions were posted here in the forum, some more, some less sophisticated.
Here is a simple one:
For future question: Please always attach your worksheet!
Attached sheet is in Prime 9 format.
