gf_derivs - dzdt(1) = z(3) * cos(z(4)); dzdt(2) = z(3) *...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
function [dzdt] = gf_derivs(t, z) global g W Sw CDstar CLstar dzdt = zeros(4, 1); d if (z(2) < 0) z(2) = 0; end e [temp, press, dens, sos] = atmos62(z(2)); L = 0.5 * dens * (z(3))^2 * Sw * CLstar; D = 0.5 * dens * (z(3))^2 * Sw * CDstar;
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: dzdt(1) = z(3) * cos(z(4)); dzdt(2) = z(3) * sin(z(4)); dzdt(3) = (-1.0 * g / W) * (D + W * sin(z(4))); dzdt(4) = (g /(W * z(3))) * (L - W * cos(z(4))); return...
View Full Document

This note was uploaded on 09/18/2011 for the course ASE 167M taught by Professor Staff during the Spring '10 term at University of Texas at Austin.

Ask a homework question - tutors are online