0% found this document useful (0 votes)
44 views11 pages

Vibrations HW 5

The document contains solutions to multiple problems involving plotting the response of different parts over time. Each problem contains code to generate plots of x against time for parts a, b and c.

Uploaded by

parelkid
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
44 views11 pages

Vibrations HW 5

The document contains solutions to multiple problems involving plotting the response of different parts over time. Each problem contains code to generate plots of x against time for parts a, b and c.

Uploaded by

parelkid
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 11

Table of Contents

PROBLEM
PROBLEM
PROBLEM
PROBLEM

3.3
3.4
3.5
3.6

..................................................................................................................
..................................................................................................................
..................................................................................................................
..................................................................................................................

PROBLEM 3.3
t = 0:.0001:2;
x_a3 = -1/30 * cos(20*t) + 2/15 * cos(10*t);
x_b3 = -2/15 * cos(20*t) + 0.5 * sin(20*t) + 2/15 * cos(10*t);
x_c3 = -1/30 * cos(20*t) + 0.5 * sin(20*t) + 2/15 * cos(10*t);
figure(1)
plot(t,x_a3)
ylabel('X')
xlabel('TIME')
title('PROBLEM 3.3--RESPONSE OF PART A')
figure(2)
plot(t,x_b3)
ylabel('X')
xlabel('TIME')
title('PROBLEM 3.3--RESPONSE OF PART B')
figure(3)
plot(t,x_c3)
ylabel('X')
xlabel('TIME')
title('PROBLEM 3.3--RESPONSE OF PART C')

1
3
5
9

PROBLEM 3.4
t = 0:.0001:2;
x_a4 = 0.1*cos(20*t) + t.*sin(20*t);
x_b4 = 0.5*sin(20*t) + t.*sin(20*t);
x_c4 = 0.1*cos(20*t) + 0.5*sin(20*t) + t.*sin(20*t);
figure(4)
plot(t,x_a4)
ylabel('X')
xlabel('TIME')
title('PROBLEM 3.4--RESPONSE OF PART A')
figure(5)
plot(t,x_b4)
ylabel('X')
xlabel('TIME')
title('PROBLEM 3.4--RESPONSE OF PART B')
figure(6)
plot(t,x_c4)
ylabel('X')
xlabel('TIME')
title('PROBLEM 3.4--RESPONSE OF PART C')

PROBLEM 3.5
t = 0:.0001:1;
x_a5 = -1/30 * cos(20*t) - 2/15 * cos(20.1*t);
x_b5 = -2/15 * cos(20*t) + 0.5 * sin(20*t) - 2/15 * cos(20.1*t);
x_c5 = -1/30 * cos(20*t) + 0.5 * sin(20*t) - 2/15 * cos(20.1*t);
figure(7)
plot(t,x_a5)
ylabel('X')
xlabel('TIME')
title('PROBLEM 3.5--RESPONSE OF PART A (OVER ONE SECOND)')
figure(8)
plot(t,x_b5)
ylabel('X')
xlabel('TIME')
title('PROBLEM 3.5--RESPONSE OF PART B (OVER ONE SECOND)')
figure(9)
plot(t,x_c5)
ylabel('X')
xlabel('TIME')
title('PROBLEM 3.5--RESPONSE OF PART C (OVER ONE SECOND)')

t = 0:.0001:100;
x_a5 = -1/30 * cos(20*t) - 2/15 * cos(20.1*t);
x_b5 = -2/15 * cos(20*t) + 0.5 * sin(20*t) - 2/15 * cos(20.1*t);
x_c5 = -1/30 * cos(20*t) + 0.5 * sin(20*t) - 2/15 * cos(20.1*t);
figure(10)
plot(t,x_a5)
ylabel('X')
xlabel('TIME')
title('PROBLEM 3.5--RESPONSE OF PART A (OVER 100 SECONDS)')
figure(11)
plot(t,x_b5)
ylabel('X')
xlabel('TIME')
title('PROBLEM 3.5--RESPONSE OF PART B (OVER 100 SECONDS)')
figure(12)
plot(t,x_c5)
ylabel('X')
xlabel('TIME')
title('PROBLEM 3.5--RESPONSE OF PART C (OVER 100 SECONDS)')

PROBLEM 3.6
t = 0:.0001:2;
x_a6 = -1/30 * cos(20*t) - 2/15 * cos(30*t);
x_b6 = -2/15 * cos(20*t) + 0.5 * sin(20*t) - 2/15 * cos(30*t);
x_c6 = -1/30 * cos(20*t) + 0.5 * sin(20*t) - 2/15 * cos(30*t);
figure(13)
plot(t,x_a6)
ylabel('X')
xlabel('TIME')
title('PROBLEM 3.6--RESPONSE OF PART A')
figure(14)
plot(t,x_b6)
ylabel('X')
xlabel('TIME')
title('PROBLEM 3.6--RESPONSE OF PART B')
figure(15)
plot(t,x_c6)
ylabel('X')
xlabel('TIME')
title('PROBLEM 3.6--RESPONSE OF PART C')

10

Published with MATLAB R2013a

11

You might also like