assign2 - grid on; g fprintf (' Volume (L) Height

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

View Full Document Right Arrow Icon
L1 = 2; D1 = 1; L2 = 3; D2 = 2; L figure (1); f f = @(h) computeV (D1, L1, D2, L2, h); fplot (f, [0 D2]); f xlabel ('Water height (m)'); ylabel ('Water volume (litres)'); title ('Volume vs Height');
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: grid on; g fprintf (' Volume (L) Height (m)\n---------------------------\n'); for V = 0: 1000: 10000 fprintf ('%10.0f%13.3f\n', V, computeH (D1, L1, D2, L2, V)); end e...
View Full Document

This note was uploaded on 10/18/2010 for the course SYSC 3600 taught by Professor Adsd during the Spring '10 term at Universidad Alfonso X El Sabio.

Ask a homework question - tutors are online