glider_no_drag - %dw is a vector of the values of...

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

View Full Document Right Arrow Icon
%Create function without drag function [dw]=glider_no_drag(t,w) %w is a vector with [v theta x y] %v is the velocity at time t %theta is the angle at time t %x is the horizontal position at time t %y is the vertical position at time t
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: %dw is a vector of the values of derivatives the derivatives D=0; v=w(1,:); theta=w(2,:); dv=(-D.*v.^2)-sin(theta); dtheta=((v.^2)-cos(theta))./v; dx=cos(theta); dy=sin(theta); dw=[dv; dtheta; dx; dy]; end...
View Full Document

Ask a homework question - tutors are online