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

Community Tip - Did you get an answer that solved your problem? Please mark it as an Accepted Solution so others with the same problem can find the answer easily. X

How to make min function and small program work with arrays?

dsochor
10-Marble

How to make min function and small program work with arrays?

In the attached MathCAD 14 worksheet I am attempting to do two things.

First, I'd like to get the min function to compare the values in two seperates arrays across each row. In the attached worksheet it is comparing all the values in all the rows of the arrays to find the minimum.

Second, I'm like MathCAD again to compare values across arrays and set the values to a particular coefficient in the simple if statement program. It is giving an error that the value must be a scalar.

What syntax do I need in both cases so that MathCAD will compare the values across the arrays?

ACCEPTED SOLUTION

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

So I think the attached should help.

View solution in original post

3 REPLIES 3
Werner_E
25-Diamond I
(To:dsochor)

Not sure, is "first" a question ot just a statement? Its unclear to me if you are happy with the result in your sheet or not. Did you expect a vector as result?

ad second: You try to compare a scalar with a vector by size. What did you expect to happen? What did you expect as result for Psi.edN?

What do you mean with your last question with "compare values across the arrays"??

BTW, you still have a question pending where you forgot to come back - http://communities.ptc.com/message/207891#207891

Hi Werner, let me clarify, I am not happy with the result for either problem. I would like both to result in a vector of the results. Please see the attached worksheet.

I'm sorry about leaving my prior questions lingering unanswered.

Werner_E
25-Diamond I
(To:dsochor)

So I think the attached should help.

Announcements

Top Tags