help with plotting function of time

1 view (last 30 days)
random1072
random1072 on 29 Apr 2020
Edited: Geoff Hayes on 29 Apr 2020
" Plot on the same graph the motion of x4(t) in the original domain as well as the eigenspace {x4}B (t)." Really confused on how to even do this. Please help. Shown is my code.
  2 Comments
Geoff Hayes
Geoff Hayes on 29 Apr 2020
Please include (via attachment or by copying and pasting) your code to this question rather than including screen shots of the code.
random1072
random1072 on 29 Apr 2020
Edited: Geoff Hayes on 29 Apr 2020
M = [11 0 0 0 0 0 0;
0 18 0 0 0 0 0;
0 0 17 0 0 0 0;
0 0 0 17 0 0 0;
0 0 0 0 13 0 0;
0 0 0 0 0 10 0;
0 0 0 0 0 0 12]
K = 108; % altering stiffness so system will become stable
% K value that makes system stable = 108 N/M
% initialize the end masses as pushing outward (i.e. x1 @ t=0 = −1 unit and x7 @ t=0 = +1 unit) and track
% the behavior of the middle mass x4 as a function of increasing time
K_Matrix_New = [(-K-K) K 0 0 0 0 0; % new K matrix where x1 and x7 are pushed out
K (-K-K) K 0 0 0 0;
0 K (-K-K) K 0 0 0;
0 0 -K 0 K 0 0;
0 0 0 -K (K+K) -K 0;
0 0 0 0 -K (K+K) -K;
0 0 0 0 0 -K (K+K) ]
K_tilde_New = M^(-1/2)*K_Matrix_New*M^(-1/2)
e = eig(K_tilde_New) % gives my eigenvalues where none are imaginary
w_new = sqrt(e) % gives the value of the frequencies +/-

Sign in to comment.

Answers (0)

Categories

Find more on 2-D and 3-D Plots in Help Center and File Exchange

Products

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!