18-Opal
December 16, 2021
Solved
ERROR WORKING OUT MEAN
- December 16, 2021
- 1 reply
- 3017 views
Hi
I have attached 2 x CSV files and Mathcad Prime.
I have isues on Page 5 of 9 calculation mean and SD
Thanks.
@ppal_255687 wrote:
Hi
Thanks for your reply. If you notice you will see that your
average calculation is off by a approx factor of 2.
This is due to the fact that there are "unncessary?" zeros in the column
of my data. Don't know how to remove them.
I've just had another look at your worksheet. The easiest way to get rid of those extra zeros is to not have them in the first place. You need a sampling method that contiguously allocates samples to a vector (I have a penchant for stating the blindingly obvious! 😊).

As I've only got Express 7, I've had to resort to some messy (functionally-programmed) function definitions. It would be a lot simpler with programming,
Preliminaries to make manipulating vectors easier.

Then the dropnth and takenth function variants.

And their use in either fixing the already sampled data or returning just the required samples.

Stuart
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.