This preview shows pages 1–2. Sign up to view the full content.
This preview has intentionally blurred sections. Sign up to view the full version.View Full Document
Unformatted text preview: left(i) = y0up + slpe*h; %generating lines rght(i) = y0dn - slpe*h; if(h <= hm) %left and right boundaries lfill(i) = left(i); rfill(i) = rght(i); end h = h + dh; i = i + 1; end e xfill = [lfill;flipud(rfill)]; %x-coordinates of region to be filled, including %left boundary and right boundary yfill = [hmvc,fliplr(hmvc)]; %y-co-ordinates of region to be filled % figure plot(left,hvec,'k',rght,hvec,'k') hold on pause fill(xfill,yfill,'b') f f...
View Full Document
This note was uploaded on 09/18/2011 for the course ASE 167M taught by Professor Staff during the Spring '10 term at University of Texas.
- Spring '10