Increase the incline of the ground

1 view (last 30 days)
Ahmad Al-jelali
Ahmad Al-jelali on 25 Apr 2017
Hi,
I am working on a project which is to calculate and track the centre of gravity of the aircraft and I am using the following Function to workout centre of gravity in the Y direction.
function ans = findycog(pmap,pw,lw)
totalweights = pw + lw;
tmp = 0.0;
cordplane = zeros(30,7);
cordplane = double(cordplane);
for i = 1:30
cordplane(i,:) = 5.07 + (24.57/30.0)*(i-1);
end
if((sum(sum(totalweights))) ~= 0.0)
tmp = sum(sum(cordplane.*(totalweights)))/double((sum(sum(totalweights))));
else
tmp = ((cordplane(15,1) + cordplane(12,1))/2); ;
end
ans = tmp;
end
Now I want to increase the incline of the ground, WHAT DO I NEED TO ADD TO THE FUNCTION TO MAKE IT 2 DEGREE INCLINE.
Any help would be nice. Thanks

Answers (0)

Categories

Find more on Earth, Ocean, and Atmospheric Sciences in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!