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?
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