EGR_102_Exam_1_Review_MATLAB_Solutions

EGR_102_Exam_1_Review_MATLAB_Solutions - Exam 1 Review...

Info iconThis preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon
Exam 1 Review Problems Solutions Problem 1, Part A Script file saved as ‘Review1A.m’ % Script 'Review1A' % Solves equations for alpha and beta in radians alpha = 5*pi/9; beta = pi/7; y1 = sin(alpha)*sin(beta) y2 = (cos(alpha-beta) - cos(alpha+beta))/2 Command Window >> run Review1A y1 = 0.42729 y2 = 0.42729 Problem 1, Part B Script file modified and saved as ‘Review1B.m’ % Script 'Review1B' % Solves equations for alpha and beta in radians alpha = pi; beta = 0; y1 = sin(alpha)*sin(beta) y2 = (cos(alpha-beta) – cos(alpha+beta))/2 Command Window >> run Review1B y1 = 0 y2 = 0
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Problem 1, Part C Script file saved as ‘Review1C.m’ % Script 'Review1C' % Solves equations for alpha and beta in degrees alpha = 15; %deg beta = 25; %deg alpha = alpha*pi/180; %rad beta = beta*pi/180; %rad y1 = sin(alpha)*sin(beta) y2 = (cos(alpha-beta) - cos(alpha+beta))/2 Command Window >> run Review1C y1 = 0.10938 y2 = 0.10938 Problem 1, Part D Script file modified and saved as ‘Review1D.m’ % Script 'Review1D'
Background image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

Page1 / 6

EGR_102_Exam_1_Review_MATLAB_Solutions - Exam 1 Review...

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online