%% tg = slrt; f = SimulinkRealTime.openFTP(tg); mget(f, 'data/data.dat'); close(f); %% Convert the Data data = SimulinkRealTime.utils.getFileScopeData('data/data.dat').data; Vin = data(:, 1); Vout = data(:, 2); t = data(:, end); %% Notes pre_amp = struct('coupling', 'AC', ... 'gain', 10^4, ... 'LPF', '2.5Hz', ... 'HPF', '100kHz'); pd200 = struct('input', 'DAC', ... 'load', '10 uF'); notes = struct('pd200', pd200); %% Save save('mat/tf_pd200_7_10uF_small_signal.mat', 't', 'Vin', 'Vout', 'notes');