Extract data at regular intervals

6 vues (au cours des 30 derniers jours)
Dirk
Dirk le 21 Juin 2013
Commenté : B Jadav le 23 Juil 2020
Hi There,
I have 2 columns of data, time and concentration. The time data are at intervals of about 5 seconds and there is a corresponding concentration measurement at each time. There are about 20,000 time measurements and I want to reduce this to a more manageable amount. How can I obtain say every 10th time x concentration value?
Thanks

Réponse acceptée

Wayne King
Wayne King le 21 Juin 2013
Modifié(e) : Wayne King le 21 Juin 2013
Are you asking for just
X = ones(2e4,2);
Y = X(1:10:end,:);
Y is a two-column matrix containing every 10-th measurement (or measurements taken every 50 seconds).
  2 commentaires
Dirk
Dirk le 21 Juin 2013
Thanks
B Jadav
B Jadav le 23 Juil 2020
hi can you share your program

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Statistics and Machine Learning Toolbox dans Help Center et File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by