function [F2]=F2(t,w) %this function inputs the scalar time t, and the 2x1 column %vector w and outputs the column vector % f1(t,w) % f2(t,w) % linear problem we demonstrated in class %A=[0 1; -2 2]; %b=[0 ; exp(2*t)*sin(t) ]; %F2=A*w + b; % problem 2 from Project 1 g=-32.17; L=2; f1=w(2); f2=(g/L)*sin(w(1)); F2=[ f1; f2];