%% Clear Workspace and Close figures clear; close all; clc; %% Intialize Laplace variable s = zpk('s'); % Load Plant load('mat/plant.mat', 'Gi', 'Zc', 'Ga', 'Gc', 'Gn', 'Gd'); % Test bodeFig({Ga*Zc*Gi}, struct('phase', true)); % TODO Huddle Test % We load the data taken during the Huddle Test. load('mat/data_huddle_test.mat', ... 't', 'Uch', 'Ucv', ... 'Unh', 'Unv', ... 'Vph', 'Vpv', ... 'Vch', 'Vcv', ... 'Vnh', 'Vnv', ... 'Va'); % We remove the first second of data where everything is settling down. t0 = 1; Uch(t