A data restoring method using compressed sensing and computer program product, the method includes (a) continuously measuring data for plural times to generate measurement results correspondingly, and processing the i-th measurement result using the compressed sensing, and starting to generate data matrix when times of measuring reaches a preset times of measurements N; (b) generating a first data matrix using the [(j+1)-N]th to the j-the measurements, and then generating a first restored data; (c) generating a second data matrix using the [(j+2)-N]th to the (j+1)-the measurements, and then generating a second restored data; (d) calculating an error between the first and the second restored data; (e) determining whether the error keeps constant for a predetermined number of times; (f) if not, repeating steps (c) to (e). |