瀏覽代碼

build a function for transferfunction

publish
Wouter Horlings 8 年之前
父節點
當前提交
e00ac8890f
共有 1 個檔案被更改,包括 12 行新增0 行删除
  1. +12
    -0
      OOequipment/transferFunction.m

+ 12
- 0
OOequipment/transferFunction.m 查看文件

@@ -0,0 +1,12 @@
function data = transferFunction(oscilloscope,functiongenerator,f_start,f_stop,n_steps)
%TRANSFERFUNCTION Summary of this function goes here
% Detailed explanation goes here

f_array = linspace(f_start,f_stop,n_steps);
data = zeros(n_steps,1);
for i = 1:n_steps
functiongenerator.frequency = f_array(i);
data(i) = oscilloscope.ch1.peak2peak;
end
end


Loading…
取消
儲存