Aircraft deplaning and centre of gravity
    6 Ansichten (letzte 30 Tage)
  
       Ältere Kommentare anzeigen
    
    Ahmad Al-jelali
 am 6 Sep. 2016
  
    
    
    
    
    Kommentiert: Walter Roberson
      
      
 am 11 Sep. 2016
            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,
0 Kommentare
Akzeptierte Antwort
  Walter Roberson
      
      
 am 6 Sep. 2016
        I showed simulation code for passengers deplaning at http://www.mathworks.com/matlabcentral/answers/301930-random-numbers-and-matrix#answer_233804
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 Kommentare
  Walter Roberson
      
      
 am 6 Sep. 2016
				I have repaired the code in http://www.mathworks.com/matlabcentral/answers/301930-random-numbers-and-matrix#answer_233804
Weitere Antworten (1)
  Image Analyst
      
      
 am 6 Sep. 2016
        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.
Siehe auch
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!


