So i have a vector of [1x2e6] of frequency data , so I would like to create a loop so that it stores 10 0.1ms (millisecond) this frequency data and fprint it.
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
%initialization
fc=2e6;
samplerate=50;
0 Commenti
Risposte (1)
Walter Roberson
il 19 Mag 2022
Number_per_group = 10;
in_groups = buffer(YourSignal, Number_per_group);
fmt = [repmat('%8.5f ', 1, Number_per_group - 1), '%8.5f\n'];
for K = 1 : size(in_groups, 2)
fprintf(fmt, in_groups(:,K));
end
0 Commenti
Vedere anche
Categorie
Scopri di più su Problem-Based Optimization Setup in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!