Skip to main content
3-Newcomer
January 11, 2023
Solved

Plot issue

  • January 11, 2023
  • 1 reply
  • 3169 views

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

Best answer by 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

 

1 reply

25-Diamond I
January 11, 2023

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.

Aries043-NewcomerAuthor
3-Newcomer
January 11, 2023

Hi, 

 

Thanks for your reply. 

 

Please find attached the worksheet.

 

Thanks,

Aries

25-Diamond I
January 11, 2023

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.