Skip to main content
1-Visitor
June 6, 2013
Solved

How to plot samplings data

  • June 6, 2013
  • 1 reply
  • 1590 views

Hi. How do i plot samplings data in Mathcad. Something like this:

Untitled.png

I want to plot all 20 samplings

Thanks in advance

Best answer by Werner_E

You are adding the vector x 5 times, so you get the 5-fold vector and when you divide it by 5 you end up with the original vector.

What you had in mind was summing up the single elements of the vector you get hold on using the vector subscript ([). But you have to be aware that Mathcad by default would begin indexing with zero, so you would sum up from i=0 to 4.

mean.png

1 reply

23-Emerald IV
June 6, 2013

Osman,

You need to enter your X-data into an array, define k as a range to index that array, and then plot X versus k.

See attached example.

Regards,

Luc

1-Visitor
June 6, 2013

Hi LucMeekes

Thanks for the reply

When i do this, i use the sample mean formula for calculating the sample mean value. But Mathcad shows all 20 values:

Untitled.png

Werner_E25-Diamond IAnswer
25-Diamond I
June 7, 2013

You are adding the vector x 5 times, so you get the 5-fold vector and when you divide it by 5 you end up with the original vector.

What you had in mind was summing up the single elements of the vector you get hold on using the vector subscript ([). But you have to be aware that Mathcad by default would begin indexing with zero, so you would sum up from i=0 to 4.

mean.png