Data processing
Mostra commenti meno recenti
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.
Risposta accettata
Più risposte (1)
Fangjun Jiang
il 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);
Categorie
Scopri di più su Logical in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!