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,
Best Answer