Aircraft deplaning and centre of gravity

조회 수: 4 (최근 30일)
Ahmad Al-jelali
Ahmad Al-jelali 2016년 9월 6일
댓글: Walter Roberson 2016년 9월 11일
Hi guys, I have the following so far:
a=30;
b=3;
A=rand(a,b)<0.85;
B=zeros(30,1);
C=A;
D=[A B C]
I am working on aircraft deplaning and how the centre of gravity changes when passengers start to deplane the aircraft. I am simulating the A320 as a 30*7 matrix as it can be seen from the above. I am new to Matlab and would like to know how to perform the following:
1-the 30*7 matrix shows passengers seated in different seats where 1 is and empty seats are zeros. I want to simulate passengers getting off the aircraft and the ones become zeros. 2- a code that can calculate and track where the centre of gravity is and how it changes with respect to time.
Any help is very highly appreciated because I am stuck and need help with it.
Regards,

채택된 답변

Walter Roberson
Walter Roberson 2016년 9월 6일
You cannot meaningfully calculate changes in center of gravity without modeling the existing weight distribution of the fixed portions, and the weight of the individual passengers (including luggage), and indeed the dynamic motion of the passengers moving through the plane, taking into account that they never simply deplane one at a time with the others staying seated until the previous is gone.
  댓글 수: 2
Ahmad Al-jelali
Ahmad Al-jelali 2016년 9월 6일
Yah Walter that is 100% correct but because I am new to my Matlab your example was confusing me more because I couldn't get it to run. What I am doing is deplaning the aircraft one by one and seeing how the centre of gravity changes with respect to time. Each passenger weights 77 Kg and has 7 kg luggage with them. Can you please show me how to make the code and run it correctly.

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

추가 답변 (1개)

Image Analyst
Image Analyst 2016년 9월 6일
Try this for a start:
a=30;
b=3;
A=rand(a,b)<0.85;
B=zeros(30,1);
C=A;
D=[A B C]
[rows, columns] = size(D)
for row = 1 : rows
% Empty right side
D(row, 1:3) = 0;
% Compute center of gravity
% I'll let you do this. Let us know if you can't figure it out.
[xCOG(row), yCOG(row)] = FindCOG(D)
% Now empty left side.
D(row, 5:7) = 0;
% Compute center of gravity again.
[x(row), yCOG(row)] = FindCOG(D)
end
I assume you know how to find the center of gravity. It's not hard but let us know if you can't figure that out.
  댓글 수: 15
Ahmad Al-jelali
Ahmad Al-jelali 2016년 9월 11일
Yah he made it sound so easy when I asked. I will try my best to finish it but what is the best way to learn Matlab.

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

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by