SlideShare a Scribd company logo
1 of 2
Download to read offline
%Matthew Mobley
%Mechanical Vibrations
%Convolution Integral, System Response, HW#14
%11/18/2014
%===============================DEFINITIONS================================
m = 1; c = 2.5; k = 100; wn = sqrt(k/m);
cc = 2*sqrt(m*k); zeta = c/cc; wd = wn*sqrt(1-(zeta)^2); t0 = 0.5;
w = pi/(2*t0);
numPoints = 100;
dt = t0/numPoints;
t_beforet0 = 0:dt:t0; t_beforet0 = t_beforet0(1:end-1);
x_beforet0 = zeros(1, numPoints);
t_aftert0 = t0:dt:6*t0; t_aftert0 = t_aftert0(1:end-1);
x_aftert0 = zeros(1, 5*numPoints);
t = [t_beforet0 t_aftert0];
%==========================================================================
%Forcing Function
x_stat = [t_beforet0/t0, 0*t_aftert0];
%Impulse Momentum Response
x_IM = ((wn^2)/(w*wd))*exp(-zeta*wn*t).*sin(wd*t);
%Convolution===============================================================
A = @(t, tau, zeta, wn, wd, w, t0) (tau/t0).*exp(zeta*wn*tau).*cos(wd*tau);
B = @(t, tau, zeta, wn, wd, w, t0) (tau/t0).*exp(zeta*wn*tau).*sin(wd*tau);
%for 0 < t < t0
for i = 1:numPoints
t = t_beforet0(i);
X1 = integral(@(tau) A(t,tau,zeta,wn,wd,w,t0),0,t);
X2 = integral(@(tau) B(t,tau,zeta,wn,wd,w,t0),0,t);
x_beforet0(i) = ((wn^2)/wd)*exp(-zeta*wn*t)*(sin(wd*t)*X1 - cos(wd*t)*X2);
end
%for t0 < t
X1 = integral(@(tau) A(t,tau,zeta,wn,wd,w,t0),0,t0);
X2 = integral(@(tau) B(t,tau,zeta,wn,wd,w,t0),0,t0);
for i = 1:5*numPoints
t = t_aftert0(i);
x_aftert0(i) = ((wn^2)/wd)*exp(-zeta*wn*t)*(sin(wd*t)*X1 - cos(wd*t)*X2);
end
Page 1 of 2Convolution_System_Response
5/22/2015file:///C:/Users/Owner/Documents/Mechanical%20Vibrations/html/Convolution_System_...
Published with MATLAB® R2012b
t = [t_beforet0 t_aftert0];
X_con = [x_beforet0 x_aftert0];
%==========================================================================
%Plotting
plot(t, X_con, t, x_IM, '--', t, x_stat, '-.');
legend('Convolution Integral', 'Impulse Momentum', 'Static Deflection');
title( 'fontsize{16} Non-periodic Forcing: Solution via Convolution');
xlabel('fontsize{12} Time [s]');
ylabel('fontsize{12} Displacement');
Page 2 of 2Convolution_System_Response
5/22/2015file:///C:/Users/Owner/Documents/Mechanical%20Vibrations/html/Convolution_System_...

More Related Content

What's hot

Common derivatives integrals
Common derivatives integralsCommon derivatives integrals
Common derivatives integrals
Kavin Ruk
 
Include stdio. wps office (1)
Include  stdio. wps office (1)Include  stdio. wps office (1)
Include stdio. wps office (1)
NilayChavhan
 
8.2 integration by parts
8.2 integration by parts8.2 integration by parts
8.2 integration by parts
dicosmo178
 
Respuestas unidad vi
Respuestas unidad viRespuestas unidad vi
Respuestas unidad vi
flor2510
 
Code chuyển từ lịch dương sang lịch âm
Code chuyển từ lịch dương sang lịch âmCode chuyển từ lịch dương sang lịch âm
Code chuyển từ lịch dương sang lịch âm
Freelancer
 
Flash cards derivative
Flash cards derivativeFlash cards derivative
Flash cards derivative
IAmSpartan117
 

What's hot (20)

Minimos cuadrados
Minimos cuadradosMinimos cuadrados
Minimos cuadrados
 
Common derivatives integrals
Common derivatives integralsCommon derivatives integrals
Common derivatives integrals
 
Sparse Representation of Multivariate Extremes with Applications to Anomaly R...
Sparse Representation of Multivariate Extremes with Applications to Anomaly R...Sparse Representation of Multivariate Extremes with Applications to Anomaly R...
Sparse Representation of Multivariate Extremes with Applications to Anomaly R...
 
Solution 3 i ph o 35
Solution 3 i ph o 35Solution 3 i ph o 35
Solution 3 i ph o 35
 
Solution of simplified neutron diffusion equation by FDM
Solution of simplified neutron diffusion equation by FDMSolution of simplified neutron diffusion equation by FDM
Solution of simplified neutron diffusion equation by FDM
 
Math powerpoint- Polynomial equations and graph of polynomial functions
Math powerpoint- Polynomial equations and graph of polynomial functionsMath powerpoint- Polynomial equations and graph of polynomial functions
Math powerpoint- Polynomial equations and graph of polynomial functions
 
1- التحويل من النظام العشرى إلى النظام الثنائى
1- التحويل من النظام العشرى إلى النظام الثنائى1- التحويل من النظام العشرى إلى النظام الثنائى
1- التحويل من النظام العشرى إلى النظام الثنائى
 
Include stdio. wps office (1)
Include  stdio. wps office (1)Include  stdio. wps office (1)
Include stdio. wps office (1)
 
Finite Difference Method
Finite Difference MethodFinite Difference Method
Finite Difference Method
 
8.2 integration by parts
8.2 integration by parts8.2 integration by parts
8.2 integration by parts
 
Respuestas unidad vi
Respuestas unidad viRespuestas unidad vi
Respuestas unidad vi
 
Game theory
Game theoryGame theory
Game theory
 
Tabla de derivadas
Tabla de derivadasTabla de derivadas
Tabla de derivadas
 
NVT MD
NVT MDNVT MD
NVT MD
 
Fourier basics
Fourier basicsFourier basics
Fourier basics
 
Code chuyển từ lịch dương sang lịch âm
Code chuyển từ lịch dương sang lịch âmCode chuyển từ lịch dương sang lịch âm
Code chuyển từ lịch dương sang lịch âm
 
Flash cards derivative
Flash cards derivativeFlash cards derivative
Flash cards derivative
 
My Book
My BookMy Book
My Book
 
2- التحويل من النظام العشرى إلى النظام الثمانى
2- التحويل من النظام العشرى إلى النظام الثمانى 2- التحويل من النظام العشرى إلى النظام الثمانى
2- التحويل من النظام العشرى إلى النظام الثمانى
 
1. (TCO 2) For the 9S12G128 microcontroller, the lowest priority interrupt ha...
1. (TCO 2) For the 9S12G128 microcontroller, the lowest priority interrupt ha...1. (TCO 2) For the 9S12G128 microcontroller, the lowest priority interrupt ha...
1. (TCO 2) For the 9S12G128 microcontroller, the lowest priority interrupt ha...
 

Viewers also liked

SHAGUN PATHAK UPDATED
SHAGUN PATHAK UPDATEDSHAGUN PATHAK UPDATED
SHAGUN PATHAK UPDATED
SHAGUN PATHAK
 
SA Final Report 2015
SA Final Report 2015 SA Final Report 2015
SA Final Report 2015
Danielle Ling
 
Tilaaja-tuottaja-seminaari Kati Myllymäki
Tilaaja-tuottaja-seminaari Kati MyllymäkiTilaaja-tuottaja-seminaari Kati Myllymäki
Tilaaja-tuottaja-seminaari Kati Myllymäki
TilTu-seminaari
 

Viewers also liked (15)

MUHAMMAD HISHAMUDDIN AZMI
MUHAMMAD HISHAMUDDIN AZMIMUHAMMAD HISHAMUDDIN AZMI
MUHAMMAD HISHAMUDDIN AZMI
 
Los planetas de german
Los planetas de germanLos planetas de german
Los planetas de german
 
Rancangan perniagaan
Rancangan perniagaanRancangan perniagaan
Rancangan perniagaan
 
SHAGUN PATHAK UPDATED
SHAGUN PATHAK UPDATEDSHAGUN PATHAK UPDATED
SHAGUN PATHAK UPDATED
 
Presentacion
PresentacionPresentacion
Presentacion
 
Efficient register renaming and recovery for high-performance processors.
Efficient register renaming and recovery for high-performance processors.Efficient register renaming and recovery for high-performance processors.
Efficient register renaming and recovery for high-performance processors.
 
Confusões ortográficas
Confusões ortográficasConfusões ortográficas
Confusões ortográficas
 
Present perfect tense
Present perfect tensePresent perfect tense
Present perfect tense
 
SA Final Report 2015
SA Final Report 2015 SA Final Report 2015
SA Final Report 2015
 
Resepi kek coklat moist
Resepi kek coklat moistResepi kek coklat moist
Resepi kek coklat moist
 
Pendulo simple
Pendulo simplePendulo simple
Pendulo simple
 
Automatic speed controller in real time vehicles.
Automatic speed controller in real time vehicles.Automatic speed controller in real time vehicles.
Automatic speed controller in real time vehicles.
 
MyResearch_ad
MyResearch_adMyResearch_ad
MyResearch_ad
 
Whitepaper Virtuelle Techniken im Automobilbau
Whitepaper Virtuelle Techniken im AutomobilbauWhitepaper Virtuelle Techniken im Automobilbau
Whitepaper Virtuelle Techniken im Automobilbau
 
Tilaaja-tuottaja-seminaari Kati Myllymäki
Tilaaja-tuottaja-seminaari Kati MyllymäkiTilaaja-tuottaja-seminaari Kati Myllymäki
Tilaaja-tuottaja-seminaari Kati Myllymäki
 

Similar to Convolution_System_Response

Solutions_Manual_to_accompany_Applied_Nu.pdf
Solutions_Manual_to_accompany_Applied_Nu.pdfSolutions_Manual_to_accompany_Applied_Nu.pdf
Solutions_Manual_to_accompany_Applied_Nu.pdf
WaleedHussain30
 
Fourier series example
Fourier series exampleFourier series example
Fourier series example
Abi finni
 
233_Sample-Chapter (1).pdf
233_Sample-Chapter (1).pdf233_Sample-Chapter (1).pdf
233_Sample-Chapter (1).pdf
ssuser4dafea
 
Solucionario Beer, Johnton, Mazurek y Eisenberg - Octava Edicion.pdf
Solucionario Beer, Johnton, Mazurek y Eisenberg - Octava Edicion.pdfSolucionario Beer, Johnton, Mazurek y Eisenberg - Octava Edicion.pdf
Solucionario Beer, Johnton, Mazurek y Eisenberg - Octava Edicion.pdf
AntonellaMeaurio
 

Similar to Convolution_System_Response (20)

Solutions_Manual_to_accompany_Applied_Nu.pdf
Solutions_Manual_to_accompany_Applied_Nu.pdfSolutions_Manual_to_accompany_Applied_Nu.pdf
Solutions_Manual_to_accompany_Applied_Nu.pdf
 
assignment_2
assignment_2assignment_2
assignment_2
 
Fourier series example
Fourier series exampleFourier series example
Fourier series example
 
233_Sample-Chapter.pdf
233_Sample-Chapter.pdf233_Sample-Chapter.pdf
233_Sample-Chapter.pdf
 
233_Sample-Chapter (1).pdf
233_Sample-Chapter (1).pdf233_Sample-Chapter (1).pdf
233_Sample-Chapter (1).pdf
 
Lab 1 izz
Lab 1 izzLab 1 izz
Lab 1 izz
 
Admission in India
Admission in IndiaAdmission in India
Admission in India
 
Solucionario Beer, Johnton, Mazurek y Eisenberg - Octava Edicion.pdf
Solucionario Beer, Johnton, Mazurek y Eisenberg - Octava Edicion.pdfSolucionario Beer, Johnton, Mazurek y Eisenberg - Octava Edicion.pdf
Solucionario Beer, Johnton, Mazurek y Eisenberg - Octava Edicion.pdf
 
Hermite spline english_20161201_jintaeks
Hermite spline english_20161201_jintaeksHermite spline english_20161201_jintaeks
Hermite spline english_20161201_jintaeks
 
Heat Map Modeling Using Resistive Network
Heat Map Modeling Using Resistive NetworkHeat Map Modeling Using Resistive Network
Heat Map Modeling Using Resistive Network
 
Matlab Señales Discretas
Matlab Señales DiscretasMatlab Señales Discretas
Matlab Señales Discretas
 
Contemporary communication systems 1st edition mesiya solutions manual
Contemporary communication systems 1st edition mesiya solutions manualContemporary communication systems 1st edition mesiya solutions manual
Contemporary communication systems 1st edition mesiya solutions manual
 
Applied Digital Signal Processing 1st Edition Manolakis Solutions Manual
Applied Digital Signal Processing 1st Edition Manolakis Solutions ManualApplied Digital Signal Processing 1st Edition Manolakis Solutions Manual
Applied Digital Signal Processing 1st Edition Manolakis Solutions Manual
 
A Course in Fuzzy Systems and Control Matlab Chapter two
A Course in Fuzzy Systems and Control Matlab Chapter twoA Course in Fuzzy Systems and Control Matlab Chapter two
A Course in Fuzzy Systems and Control Matlab Chapter two
 
数式処理ソフトMathematicaで数学の問題を解く
数式処理ソフトMathematicaで数学の問題を解く数式処理ソフトMathematicaで数学の問題を解く
数式処理ソフトMathematicaで数学の問題を解く
 
Solution Manual : Chapter - 05 Integration
Solution Manual : Chapter - 05 IntegrationSolution Manual : Chapter - 05 Integration
Solution Manual : Chapter - 05 Integration
 
Testsol
TestsolTestsol
Testsol
 
Fourier Transform
Fourier TransformFourier Transform
Fourier Transform
 
Ray : modeling dynamic systems
Ray : modeling dynamic systemsRay : modeling dynamic systems
Ray : modeling dynamic systems
 
002 ray modeling dynamic systems
002 ray modeling dynamic systems002 ray modeling dynamic systems
002 ray modeling dynamic systems
 

Convolution_System_Response

  • 1. %Matthew Mobley %Mechanical Vibrations %Convolution Integral, System Response, HW#14 %11/18/2014 %===============================DEFINITIONS================================ m = 1; c = 2.5; k = 100; wn = sqrt(k/m); cc = 2*sqrt(m*k); zeta = c/cc; wd = wn*sqrt(1-(zeta)^2); t0 = 0.5; w = pi/(2*t0); numPoints = 100; dt = t0/numPoints; t_beforet0 = 0:dt:t0; t_beforet0 = t_beforet0(1:end-1); x_beforet0 = zeros(1, numPoints); t_aftert0 = t0:dt:6*t0; t_aftert0 = t_aftert0(1:end-1); x_aftert0 = zeros(1, 5*numPoints); t = [t_beforet0 t_aftert0]; %========================================================================== %Forcing Function x_stat = [t_beforet0/t0, 0*t_aftert0]; %Impulse Momentum Response x_IM = ((wn^2)/(w*wd))*exp(-zeta*wn*t).*sin(wd*t); %Convolution=============================================================== A = @(t, tau, zeta, wn, wd, w, t0) (tau/t0).*exp(zeta*wn*tau).*cos(wd*tau); B = @(t, tau, zeta, wn, wd, w, t0) (tau/t0).*exp(zeta*wn*tau).*sin(wd*tau); %for 0 < t < t0 for i = 1:numPoints t = t_beforet0(i); X1 = integral(@(tau) A(t,tau,zeta,wn,wd,w,t0),0,t); X2 = integral(@(tau) B(t,tau,zeta,wn,wd,w,t0),0,t); x_beforet0(i) = ((wn^2)/wd)*exp(-zeta*wn*t)*(sin(wd*t)*X1 - cos(wd*t)*X2); end %for t0 < t X1 = integral(@(tau) A(t,tau,zeta,wn,wd,w,t0),0,t0); X2 = integral(@(tau) B(t,tau,zeta,wn,wd,w,t0),0,t0); for i = 1:5*numPoints t = t_aftert0(i); x_aftert0(i) = ((wn^2)/wd)*exp(-zeta*wn*t)*(sin(wd*t)*X1 - cos(wd*t)*X2); end Page 1 of 2Convolution_System_Response 5/22/2015file:///C:/Users/Owner/Documents/Mechanical%20Vibrations/html/Convolution_System_...
  • 2. Published with MATLAB® R2012b t = [t_beforet0 t_aftert0]; X_con = [x_beforet0 x_aftert0]; %========================================================================== %Plotting plot(t, X_con, t, x_IM, '--', t, x_stat, '-.'); legend('Convolution Integral', 'Impulse Momentum', 'Static Deflection'); title( 'fontsize{16} Non-periodic Forcing: Solution via Convolution'); xlabel('fontsize{12} Time [s]'); ylabel('fontsize{12} Displacement'); Page 2 of 2Convolution_System_Response 5/22/2015file:///C:/Users/Owner/Documents/Mechanical%20Vibrations/html/Convolution_System_...