hw3_11 - Output optR=fminbnd'hw3_11,2,10 optR = 4.9237...

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

View Full Document Right Arrow Icon
function[cost]=hw3_11(r) % Andrew Goodson % ENGR 1412-002 % HW 21 % 3-11 % 11/16/2009 % Calculations h=(500-2/3.*pi.*r.^3)/(pi.*r.^2); cost=(300.*2.*pi.*r.*h)+(400.*2.*pi.*r.^2);
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: % Output % optR=fminbnd('hw3_11',2,10) % % optR = % % 4.9237 % % mincost=hw3_11(optR) % % mincost = % % 9.1394e+004 %...
View Full Document

This note was uploaded on 06/30/2011 for the course ENGR 403 taught by Professor Ahn during the Spring '11 term at Birmingham-Southern College.

Ask a homework question - tutors are online