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

Community Tip - Need help navigating or using the PTC Community? Contact the community team. X

Plot issue

Aries04
3-Newcomer

Plot issue

Hello All,

 

I just use Mathcad prime 8. I've got an issue where trying to plot in the graph and then get a notification (there are too many range variables) as shown in the snapshot below. Could you please help how to solve this issue.

Aries04_0-1673428484695.png

 

  Appreciate your help. 

 

 

Thanks,

Aries

ACCEPTED SOLUTION

Accepted Solutions
Werner_E
25-Diamond I
(To:Werner_E)

OK, the attached files are what I would call a stripped down sheet still showing the problem.

I often have to do Prime bashing here simply because Prime is so mediocre. But in this case Prime is pretty innocent. It's the fault of the author of the MC15 sheet, who made these terrible graphics. It is a paragon of all wrong and cruel abuse of ranges - really bad! In fact, one has to blame MC15 for accepting this.

Here's a little function that turns the nested matrices used in the graph into the apparently desired linear list of values. Whether the author of the file actually intended to create a list of 405 items here, many of which are identical, I cannot say. In any case, the graphic seems to show what is desired.

Werner_E_0-1673458526498.png

 

View solution in original post

11 REPLIES 11
Werner_E
25-Diamond I
(To:Aries04)

We see the error at a variable with a lot of indices. We don't see if these are literal indices or vector/matrix indices. In case of matrix indices we also don't see what the variables used for them are - constants or ranges ...

Facit: you should attach your worksheet and not just a picture.

It might also help others debugging your sheet if you strip it down, delete all which does not deal with the erranous plot, delete the traces in the plot which do not fail, so that only a small, clear worksheet is left.

In case that two of the indices are matrix indices and ranges, Prime must throw an error (as this would mean that you are creating nested matrices) and you wold have to reason what you actually plan to plot.

Aries04
3-Newcomer
(To:Werner_E)

Hi, 

 

Thanks for your reply. 

 

Please find attached the worksheet.

 

Thanks,

Aries

Werner_E
25-Diamond I
(To:Aries04)

Unfortunately I can't open your worksheet with my Prime 6, but others here might be able to help.

I use a crude method to open worksheets created by newer Prime versions but this method does not work if a worksheet uses facilities introduced in these new versions like dropdowns or the like.

Of course you could also try to strip down your worksheet, making it as simple, basic and small as possible while still showing the error.

ttokoro
20-Turquoise
(To:Aries04)

These show plot error. Show your original plot shape. Maybe we can convert it to Prime 8 plot data format.

image.pngimage.png

Aries04
3-Newcomer
(To:ttokoro)

The previous worksheet is converted from the Mathcad 15 version. 

Here I'm attaching the original worksheet of Mathcad 15 for reference. 

 

Snapshot original plot is taken from a worksheet in mathcad15.

 

Aries04_1-1673441941062.png

 

 

 

 

Werner_E
25-Diamond I
(To:Aries04)

I converted the MC15 to Prime6 format, but the sheet uses a lot of features not supported by Prime (List Boxes, Data Tables) and for reasons unknown to me units in simple definitions are not converted to units but are treated as unknown variables (maybe because the are connected to the numbers via an explicit multiplication and not an implicit one).

So it would be a lot of (too much) work to make the Prime sheet usable.
I hope that  @ttokoro  has more success with Prime 8.

Aries04
3-Newcomer
(To:Werner_E)

I faced the same problem. There is an area where defining a unit and conversion are made in version 15. I've tried to expand the "unit" area and delete all unit conversions. It works for me. However, a few units in the formula/result (e.g. kNm, MPa) of the worksheet need to be changed.

Hope this would reduce the work.

 

 Mathcad15

Aries04_0-1673449882473.png

Prime 8

Aries04_1-1673449915060.png

 

Example unit to be changed in the formula.

Aries04_2-1673450475116.png

 

 

 

Werner_E
25-Diamond I
(To:Aries04)

Well, the willingness to dig through a 74-page Prime worksheet and manually correct all the deficits of the converter is rather dwindling. 70+ pages is not exactly what I meant when I wrote that stripping down the sheet would be preferred 😉

I guess that Prime 8 correctly converts the selection list boxes and that they are the reason why I can't open your sheet.

We will have to wait what @ttokoro  is able to come up with.

Werner_E
25-Diamond I
(To:Werner_E)

OK, the attached files are what I would call a stripped down sheet still showing the problem.

I often have to do Prime bashing here simply because Prime is so mediocre. But in this case Prime is pretty innocent. It's the fault of the author of the MC15 sheet, who made these terrible graphics. It is a paragon of all wrong and cruel abuse of ranges - really bad! In fact, one has to blame MC15 for accepting this.

Here's a little function that turns the nested matrices used in the graph into the apparently desired linear list of values. Whether the author of the file actually intended to create a list of 405 items here, many of which are identical, I cannot say. In any case, the graphic seems to show what is desired.

Werner_E_0-1673458526498.png

 

ttokoro
20-Turquoise
(To:Werner_E)

If you want to check the effect of one index, such as j. however, j=0 to 8 is almost same.

image.pngimage.png

Aries04
3-Newcomer
(To:Werner_E)

Thank @Werner_E & @ttokoro for your resolution in my case. 👍

 

 

 

 

Announcements

Top Tags