Data processing
Afficher commentaires plus anciens
Hello, How to sample data for every 40 ms. As my data is quite big (75000ms)I'd like to display only every 40th sample of my data in a form of simple table (1st row :ms), second row:values)
Thanks for your help.
Réponse acceptée
Plus de réponses (1)
Fangjun Jiang
le 13 Nov 2011
Here is a different way to do it.
t=[00 08 255 267 298 300];
y=[5 4 3 4 3 2];
figure(1);hold on;
stairs(t,y);
tnew=0:40:400;
index=bsxfun(@le,t',tnew);
ynew=y(sum(index));
stem(tnew,ynew);
Catégories
En savoir plus sur Logical dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!