This preview shows pages 1–3. 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: n % Function changePop generates a NEW vector called newPop which is the % exact same as the pop input vector except with the population changes % made. % % FOR EXAMPLE: typing in [name,pop,lat,long] = Zipcode;zips = % ['NY14850'];delta = ;newPop = changePop(pop,name,zips,delta); in the % command window will generate a vector newPop which will increase the old % population value for NY14850 by 500 people. This function can be used % to generate newPop, the adjusted population data, which can then in turn % be used to find out how the centroid point changes if the population of % Ithaca is increased by ONE person.(See Script CenterPop for results). % % %...
View Full Document
This note was uploaded on 09/12/2009 for the course CS 100 taught by Professor Fan/vanloan during the Fall '07 term at Cornell University (Engineering School).
- Fall '07