About Site Map Submit Contact Us Log in | Create an account
Create an account Log In
Average Rating
User Rating:
Visitors Rating:
My rating:

Write review
  • Last update: 5 years ago
  • Total downloads: 113
  • Operating system: Linux, Mac OS X, Win All, BSD, Solaris
  • Publisher: Skynet (5 other programs)
See full specifications

scripts default iconAdjust Per-capita (Scripts) Publisher's description

adjustpc(VALUEFORYEAR1,YEAR1,YEAR2) adjusts the number VALUEFORYEAR1 from what it was in YEAR1 to what it was in YEAR2

adjustpc(VALUEFORYEAR1,YEAR1,YEAR2) adjusts the number VALUEFORYEAR1 from what it was in YEAR1 to what it was in YEAR2. The adjustment is per capita, based on historical population data previously obtained from the U.S. Census Bureau.

VALUEFORYEAR1 can be any number. YEAR1 and YEAR2 each can both be any year from 1900 to the current year. YEAR2 is optional, with its default value being the current year.

The input arguments can either be single numbers, or row or column vectors of the same size.

Population data is read from the the data file. It is assumed that the file contains data for both YEAR1 and YEAR2. This file can be updated
using a text editor - if and when this needs to be done. Microsoft Excel should not be used to do this, as it can alter the date format. The
updated file must contain data for all years up to the current year.


adjustpc(1,1900,2007) returns 3.9542
Because in this case ValueForYear1 equals 1, this indicates that the population in 2007 was 3.9542 times that in 1900.

adjustpc(1,1900) also returns 3.9542
adjustpc(1,2007,1900) returns 0.2529

adjustpc(10,1945,1960) returns 12.9117
This indicates that 10 units of something (e.g. dollars) for the entire population in 1945 would correspond to having 12.9117 units of that thing for the entire population in 1960.

ValueForYear1=[4 1 15];
Year1=[1920 1973 2002];
adjustpc(ValueForYear1,Year1,Year2) returns [11.1405 1.3992 15.4363]


For efficiency, population data is read from the data file into RAM only once per session, after which it stays in RAM for the remainder of
the session. For more implementation details, see the relevant PopForYear subfunction section of the code.

[Please subscribe to this file if you use it, so you can be notified of updates.]

System Requirements:

MATLAB 7.4 (R2007a)
Program Release Status: Major Update
Program Install Support: Install and Uninstall

Adjust Per-capita (Scripts) Tags:

Click on a tag to find related softwares

Is Adjust Per-capita (Scripts) your software?

Manage your software

Most Popular

scripts default icon ASK, OOK, FSK, BPSK, QPSK, 8PSK modulation 1.1
ASK, OOK, FSK, BPSK, QPSK, 8PSK modulation contain several functions for digital modulation simulation
scripts default icon Simulink Communication Labs 1.1
Simulink Communication Labs allows you to learn communication systems in greater depth.
scripts default icon M-QAM modulation and demodulation 1.1
M-QAM modulation and demodulation is the QAM modulation and demodulation tech.
scripts default icon LZW Compression/Decompression 1.1
LZW Compression/Decompression - Updated LZW compressor and decompressor with reasonable performance
scripts default icon InSPIRE utility to plot a 2D displacement field (Scripts) 1.0
This program plots the deformation field (displace vectors) contained in vector.txt.