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.

13 line
361B

  1. function data = transferFunction(oscilloscope,functiongenerator,f_start,f_stop,n_steps)
  2. %TRANSFERFUNCTION Summary of this function goes here
  3. % Detailed explanation goes here
  4. f_array = linspace(f_start,f_stop,n_steps);
  5. data = zeros(n_steps,1);
  6. for i = 1:n_steps
  7. functiongenerator.frequency = f_array(i);
  8. data(i) = oscilloscope.ch1.peak2peak;
  9. end
  10. end