Second-Order Matrix Differential Equation

조회 수: 9 (최근 30일)
Shabeel Samad
Shabeel Samad 2021년 3월 5일
편집: Shabeel Samad 2021년 3월 8일
I am attempting to solve a second-order differential for a double spring-mass-damper system. I was able to work out the math and obtain the differential equation in the format Mx" = Kx' + Bx + F.
M,K,B and F are matrices.
M= [m1 0 0; 0 m2 0; 0 0 m3];
K= [-k1 k1 0; k1 -k1-k2 k2; 0 k2 -k2];
B= [-b1 b1 0; b1 -b1-b2 b2; 0 b2 -b2];
F= [f 0 0];
All variables inside the matrices are random integers. I attempted to approach this in Simulink and also as a system of first order differential but my knowledge in MATLAB was not sufficient to use it as a matrix.
Any help is much appreciated!
  댓글 수: 4
James Tursa
James Tursa 2021년 3월 8일
What do you mean by "All variables inside the matrices are random integers"? That you are starting the system off with random parameters but these parameters remain fixed throughout the simulation? Or that you have some type of stochastic system where the parameters change randomly during the simulation?
Shabeel Samad
Shabeel Samad 2021년 3월 8일
편집: Shabeel Samad 2021년 3월 8일
Random in the sense that the variable you use can be anything you want. I didnt want to assign numbers when I posted the question. I felt that this would make it easier to solve.
m1 = 1
m2 = 1
m3 = 2
k1= 5
k2 = 10
b1= 2
b2 = 3
f1 = 10sin(30)
Providing integars seems easier to understand. I apologize for complicating the system for no reason.

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Linear Algebra에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by