“…%DI.m %calculate the damage index from sensing information over range %of excitation frequencies clc close all clear all %%% 20kHz %%%%% % Sensor 2 num=xlsread('C1B020kHzS2_torque0p'); nx=length(num); ns=88; aa1=num(ns:nx,:); num=xlsread('C1B020kHzS2_torque25p'); aal1_1=num(ns:nx,:); num=xlsread('C1B020kHzS2_torque50p'); aal1_2=num(ns:nx,:); num=xlsread('C1B020kHzS2_torque75p'); aal1_3=num(ns:nx,:); num=xlsread('C1B020kHzS2_torque100p'); aal1_4=num(ns:nx,:); % Sensor 3 num=xlsread('C1B020kHzS3_torque0p'); aa2=num(ns:nx,:); num=xlsread('C1B020kHzS3_torque25p'); aal2_1=num(ns:nx,:); num=xlsread('C1B020kHzS3_torque50p'); aal2_2=num(ns:nx,:); num=xlsread('C1B020kHzS3_torque75p'); aal2_3=num(ns:nx,:); num=xlsread('C1B020kHzS3_torque100p'); aal2_4=num(ns:nx,:); % Sensor 4 num=xlsread('C1B020kHzS4_torque0p'); aa1h=num(ns:nx,:); num=xlsread('C1B020kHzS4_torque25p'); aal1h_1=num(ns:nx,:); num=xlsread('C1B020kHzS4_torque50p'); aal1h_2=num(ns:nx,:); num=xlsread('C1B020kHzS4_torque75p'); aal1h_3=num(ns:nx,:); num=xlsread('C1B020kHzS4_torque100p'); aal1h_4=num(ns:nx,:); fsp=0; fpp=80; spt=.1; %frequency increment in kHz ik=(40-fsp)/spt+1; %%%%% 40kHz %%%%% % % % Sensor 2 num=xlsread('C1B040kHzS2_torque0p'); nx=length(num); ns=88; aa1=num(ns:nx,:); num=xlsread('C1B040kHzS2_torque25p'); aal1_1=num(ns:nx,:); num=xlsread('C1B040kHzS2_torque50p'); aal1_2=num(ns:nx,:); num=xlsread('C1B040kHzS2_torque75p'); aal1_3=num(ns:nx,:); num=xlsread('C1B040kHzS2_torque100p'); aal1_4=num(ns:nx,:); % % % Sensor 3 num=xlsread('C1B040kHzS3_torque0p'); aa2=num(ns:nx,:); aal2_1=num(ns:nx,:); num=xlsread('C1B040kHzS3_torque50p'); aal2_2=num(ns:nx,:); num=xlsread('C1B040kHzS3_torque75p'); aal2_3=num(ns:nx,:); num=xlsread('C1B040kHzS3_torque100p'); aal2_4=num(ns:nx,:); % % % Sensor 4 num=xlsread('C1B040kHzS4_torque0p'); aa1h=num(ns:nx,:); num=xlsread('C1B040kHzS4_torque25p'); aal1h_1=num(ns:nx,:); num=xlsread('C1B040kHzS4_torque50p'); aal1h_2=num(ns:nx,:); num=xlsread('C1B040kHzS4_torque75p'); aal1h_3=num(ns:nx,:); num=xlsread('C1B040kHzS4_torque100p'); aal1h_4=num(ns:nx,:); % fsp=0; fpp=80; spt=.1; %frequency increment in kHz ik=(40-fsp)/spt+1; % %%%%% 60kHz %%%%% % Sensor 2 num=xlsread('C1B060kHzS2_torque0p'); nx=length(num); ns=88; aa1=num(ns:nx,:); num=xlsread('C1B060kHzS2_torque25p'); aal1_1=num(ns:nx,:); num=xlsread('C1B060kHzS2_torque50p'); aal1_2=num(ns:nx,:); num=xlsread('C1B060kHzS2_torque75p'); aal1_3=num(ns:nx,:); num=xlsread('C1B060kHzS2_torque100p'); aal1_4=num(ns:nx,:); % Sensor 3 num=xlsread('C1B060kHzS3_torque0p'); aa2=num(ns:nx,:); num=xlsread('C1B060kHzS3_torque25p'); aal2_1=num(ns:nx,:); num=xlsread('C1B060kHzS3_torque50p'); aal2_2=num(ns:nx,:); num=xlsread('C1B060kHzS3_torque75p'); aal2_3=num(ns:nx,:); num=xlsread('C1B060kHzS3_torque100p'); aal2_4=num(ns:nx,:); % Sensor 4 num=xlsread('C1B060kHzS4_torque0p'); aa1h=num(ns:nx,:); num=xlsread('C1B060kHzS4_torque25p'); aal1h_1=num(ns:nx,:); num=xlsread('C1B060kHzS4_torque50p'); aal1h_2=num(ns:nx,:); num=xlsread('C1B060kHzS4_torque75p'); aal1h_3=num(ns:nx,:); num=xlsread('C1B060kHzS4_torque100p'); aal1h_4=num(ns:nx,:); fsp=20; fpp=100; spt=.1; %frequency increment in kHz ik=(60-fsp)/spt+1; %%%%%% 80kHz %%%%% % % Sensor 2 num=xlsread('C1B080kHzS2_torque0p'); nx=length(num); ns=88; aa1=num(ns:nx,:); num=xlsread('C1B080kHzS2_torque25p'); aal1_1=num(ns:nx,:); num=xlsread('C1B080kHzS2_torque50p'); aal1_2=num(ns:nx,:); num=xlsread('C1B080kHzS2_torque75p'); aal1_3=num(ns:nx,:); num=xlsread('C1B080kHzS2_torque100p'); aal1_4=num(ns:nx,:); (4,1); sum(1,1) = DI_array(3,1) + DI_array(4,1); sum(2,1) = DI_array(3,2) + DI_array(4,2); sum(3,1) = DI_array(1,3) + DI_array (2,3); sum(4,1) = DI_array(1,4) + DI_array(2,4); % % sort sensor sums in ascending order, in separate column vector asc_sum = zeros(4,2); asc_...…”