cantileverBinaryDebug - % cantileverBinaryDebug.m % (c)...

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

View Full Document Right Arrow Icon
% cantileverBinaryDebug.m % (c) 2002 g.m.dick % ET030 - problem solving with MATLAB % % modified to demonstrate use of the debugger - gmd % % program description % =================== % % The purpose of this script is to determine the the deflection of a % cantilever beam by determining the root of the equation % f(theta) = w*l*cos(theta) - k*theta % the solution is found using a binary search. % % data dictionary % =============== % ______________________________________________________________________ % variable type i/o | description % ---------------------------------------------------------------------- % model parameters % k scalar in | the beam spring constant (lb-ft/radian) % w scalar in | the supported weight (lb) % l scalar in | beam length (ft) % % solution parameters - variables % delta scalar in | required solution precision - absolute (radians) % DEBUG scalar | supports diagnostic printing % solutionTime scalar out | time to compute solution % count scalar | iteration count - performance metric % % solution variables % thetaL scalar in | current search interval - low side (radians) % thetaH
Background image of page 1

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

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 04/05/2010 for the course CHEMENG 05078870 taught by Professor Mustafa during the Spring '10 term at Ege Üniversitesi.

Page1 / 3

cantileverBinaryDebug - % cantileverBinaryDebug.m % (c)...

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

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