Interactive Sampling Plot

Explore how the number of samples affects the representation of a sine signal.

Original signal Sample points Linearly connected samples
Number of Samples: 2
Sample count
2
Signal interval
0 → 4π
Sample spacing Δx
4π
The upper graph is the continuous reference signal y = sin(x). The lower graph uses only the selected sample points and connects them with straight line segments, matching the behavior of the MATLAB version.