daily pastebin goal
7%
SHARE
TWEET

Untitled

a guest Mar 25th, 2019 53 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. clc;
  2. clear;
  3. close all;
  4.  
  5. data1 = importdata ('amort14cort.txt');
  6. tempo1 = data1(:,1);
  7. x1 = data1(:,2);
  8. y1 = data1(:,3);      %aceleração
  9.  
  10. figure 1
  11. plot (tempo1,y1, 'b');
  12. %xlim ([6.91 7])
  13. xlabel ('Tempo [s]')
  14. ylabel ('Amplitude [g]')
  15. title ('Resposta de vibração ao Impulso')
  16.  
  17.  
  18. data2= importdata ('amort222cort.txt');
  19. tempo2= data2 (:,1)
  20. x2= data2(:,2);
  21. y2= data2(:,3);  %aceleração
  22.  
  23. figure 2
  24. plot(tempo2,y2, 'r');
  25. %xlim([18.4 18.43])
  26.  
  27. data3= importdata ('amort32cort.txt');
  28. tempo3= data3 (:,1);
  29. x3= data3(:,2); %amplitude
  30. y3= data3(:,3);
  31.  
  32. figure 3
  33. plot(tempo3,y3, 'g');
  34. %xlim([7.41 7.5])
  35.  
  36. data4= importdata ('amort431cort.txt');
  37. tempo4= data4 (:,1);
  38. x4= data4(:,2); %amplitude
  39. y4= data4(:,3);
  40.  
  41. figure 4
  42. plot (tempo4,y4, 'm');
  43. %xlim([11.24 11.36])
  44.  
  45. figure 5
  46. plot(tempo1-6.9146,y1, 'b',tempo2-18.405,y2, 'r',tempo3-7.4134,y3, 'g',tempo4-11.248,y4, 'm')
  47. xlim([0 0.1])
  48. xlabel('Tempo[s]')
  49. ylabel('Amplitude [g]')
  50. legend ('Resposta ao impulso 1° Amostra', 'Resposta ao Impulso 2° Amostra','Resposta ao Impulso 3° Amostra','Resposta ao Impulso 4° Amostra')
  51. title ('Resposta ao Impulso metodo experimental das amostras')
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top