What does determine the time to update plot?
Afficher commentaires plus anciens
Hello everyone and thanks advance to read my questions.
I have make real time recording program. It has 32ch (it means 32 ea subplots) and each channel updated. I used bellow code to update my plot and check the time to update.
tic
set(DataLine, {'Ydata'}, num2cell(signal, 2)
% DataLine is 32 x 1 cell and signal 32 x 4000 matrix
toc
the code update same size matrix every time, but elapsed time is variable from about 2 to 7 ms Because I have make very strict recording program, I want the elapsed time will not variable. How can I update plot in very strict time?
And I have one more question! Different with above, I draw 20 number of plot which have 40 samples at each subplot (32 figure * 20 plot * 40 samples = 25,600) I think it will have short updating time than above (32 figure * 4000 samples = 128,000) because, It has less number of data, but when I update that by bellow, it need longer time!
set(DataLine(:,:), {'Ydata'}, num2cell(cell2mat(spike),2));
% spike 32 x 1 cell that each cell has 20 x 40 matrix
Is any body can help me? thanks!
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur 성능과 메모리 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!