Network programming assignment for University
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

26 lines
507 B

  1. function [F,T] = Echo_time(fileName)
  2. %Parse echo log file
  3. % T response time vector
  4. % F frequency vector of Tr
  5. %
  6. % author:
  7. % Christos Choutouridis AEM:8997
  8. % cchoutou@ece.auth.gr
  9. data = fopen (fileName);
  10. A = textscan(data,'%s','Delimiter','\n');
  11. B = A{1,1};
  12. fclose(data);
  13. s = size (B);
  14. T = zeros(s(1)-1, 1);
  15. for i = 2:s(1)
  16. C = textscan(B{i,1},'%s','Delimiter',' ');
  17. D = C{1};
  18. T(i-1) = str2num(D{8});
  19. end
  20. F = histcounts(T, 1:1000);
  21. end