% You may run this file after Simulation to see the responses of the system
clear all, close all, clc
figure(1) % Displacement of the building
load x.mat
load xu.mat
plot(x(1,:)',x(2,:)'), grid on, hold on
plot(xu(1,:)',xu(2,:)','r'),
xlabel('Time, s')
ylabel('Displ., m')
title('Displacement response of the building under El-Centro Earthquake Signals')
legend('Controlled', 'Uncontrolled')
figure(2) % Velocity of the building
load v.mat
load vu.mat
plot(v(1,:)',v(2,:)'), grid on, hold on
plot(vu(1,:)',vu(2,:)','r'),
xlabel('Time, s')
ylabel('Velocity, m/s')
title('Velocity response of the building under El-Centro Earthquake Signals')
legend('Controlled', 'Uncontrolled')
figure(3) % Acceleration of the building
load a.mat
load au.mat
plot(a(1,:)',a(2,:)'), grid on, hold on
plot(au(1,:)',au(2,:)','r'),
xlabel('Time, s')
ylabel('Acceleration, m/s^2')
title('Accelerationresponse of the building under El-Centro Earthquake Signals')
legend('Controlled', 'Uncontrolled')
figure(4) % Control Voltage
load u.mat
plot(u(1,:)',u(2,:)'), grid on,
xlabel('Time, s')
ylabel('Volt')
figure(5) % Control Force
load f.mat
plot(f(1,:)',f(2,:)'), grid on,
xlabel('Time, s')
ylabel('Force, N')