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.
 
 
 
 

31 lines
619 B

  1. #!/usr/bin/octave
  2. # load data
  3. if (length(who("calibdata")) == 0)
  4. calibdata = load("calibrate-50a.log");
  5. endif
  6. # split it into each keithley value
  7. if (length(who("a")) == 0)
  8. for i = 1 : (length(calibdata) / 4000)
  9. block=1:4000;
  10. a(i, block, 1) = calibdata((i-1) * 4000 + block, 2);
  11. a(i, block, 2) = calibdata((i-1) * 4000 + block, 3);
  12. a(i, block, 3) = calibdata((i-1) * 4000 + block, 1);
  13. endfor
  14. endif
  15. # plot them all
  16. #clf;
  17. #figure(1);
  18. #hold on
  19. out = [];
  20. for i = 1:2:21
  21. range = 1:4000;
  22. x = a(i, range, 1);
  23. y = a(i, range, 2);
  24. out = [ out x' y' ];
  25. endfor
  26. save("-ascii","calib.dat","out");