Skip to main content
1-Visitor
April 12, 2017
Question

help with mathcad converting matrix results into scalar or any other way to do this

  • April 12, 2017
  • 6 replies
  • 3068 views

Hi there, need help, i have calculated values of L and R using rnorm function for 1000 intervals with the mean values and the standard deviation values of L and R. The results are in brackets so i assume it is a matrix. Now need to check when L>R and count, i was using if function but needs a scalar result and L and R are not, any ideas?

6 replies

23-Emerald IV
April 12, 2017

Do like this:

etc.

Note that the function result is the result of evaluation of the last statement it executed before ending (unless error), or whatever you supply as argument to a 'return' statement.

So if you need the vector with the Fail results, put

As the last statement.

Success!

Luc

fjuarrero1-VisitorAuthor
1-Visitor
April 12, 2017

thanks Luc, will try it

21-Topaz II
April 12, 2017

Might it not make more sense the comparison of  the arithmetic means of the data values?

Assignement B3.jpg

Assignement B30.jpg

fjuarrero1-VisitorAuthor
1-Visitor
April 12, 2017

thanks to all, will try the options