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

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

Help and reality do not fit.

gmunksgaard
1-Newbie

Help and reality do not fit.

Error in getting the max dynamic value of corner post force origin from the containers stowed on hatch cover.

Error in mathcad max array.png

And according to the ”Help function” you can use Arrays?????? (the result of “IsArray” function is 1)

Help function array.png

9 REPLIES 9
-MFra-
21-Topaz II
(To:gmunksgaard)

Hello Gert,

you should check that the matrices have all the same size.

max tra colonne di quattro matrici.jpg

LucMeekes
23-Emerald III
(To:gmunksgaard)

The four arguments are four columns of the same matrix, so they should be all vectors with the same length.

As an alternative try :

max(submatrix(CPL.B6TH,ORIGIN,ORIGIN+rows(CPL.B6TH)-1,ORIGIN,ORIGIN+3)).

It could be that each of the CPL.B6TH<x> is a nested matrix, in which case the max function fails:

Success!
Luc

-MFra-
21-Topaz II
(To:gmunksgaard)

In this case, just a small change, as follows:

max tra colonne di quattro matrici 1.jpg

LucMeekes
23-Emerald III
(To:gmunksgaard)

The question is what the OP wanted to determine the maximum of.

And according to the ”Help function” you can use Arrays??????

Yes, and thats true.

But what the help does not tell you is, that you have to use arrays of scalars.

In other words - the arrays must have elements which can be compared by size and they even can be complex numbers (which can't be compared by size from a mathematical point of view) as described in the help.

You don't show it but the elements of your matrix where you provide the columns of seem to be not scalars. Maybe the are matrices themselves or something else.

You would have to provide mor information about your matrix and about what maximum you are looking for.

In this case it would be better to create a discussion/question and not a document as you did here, as we could not offer attachments like a Mathcad file when we comment on a document.

Furthermore comments to a document don't let it bubble up the list of recent post and therefore often are overlooked.

LucMeekes
23-Emerald III
(To:gmunksgaard)

"complex numbers (which can't be compared by size from a mathematical point of view)".

I know at least two ways to compare complex numbers by size:

1. The funny way how Mathcad and Prime have implemented it (see description above).

2. Comparing by their 'length' where length(c)=sqrt(Re(c)^2+Im(c)^2).

LucMeekes
23-Emerald III
(To:gmunksgaard)

This is an other approach:

Luc

-MFra-
21-Topaz II
(To:gmunksgaard)

Would be fine if Gert would clarify some things. Or do we proceed by suppositions?

vlehner
13-Aquamarine
(To:gmunksgaard)

Gerd,

maybe it helps you...

Volker

Volker
Top Tags