⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 uscity.m

📁 物流分析工具包。Facility location: Continuous minisum facility location, alternate location-allocation (ALA)
💻 M
字号:
function varargout = uscity(varargin)
%USCITY US cities data.
%      s = uscity             Output all variables as structure 's'
%[x1,x2] = uscity             Output only first 1, 2, etc., variables
%      s = uscity('x',...)    Output only variables 'x', ... as struct. 's'
%[x,...] = uscity('x',...)    Output variables 'x', ... as variables
%        = uscity(...,is)     Output subset 'x(is)' using SUBSETSTUCT(s,is)
%                             where 'is' is vector of elements to extract
%
% Loads data file "uscity.mat" that contain the following variables:
%      Name = m-element cell array of m city name strings
%        ST = m-element cell array of m 2-char state abbreviations
%        XY = m x 2 matrix of city lon-lat (in decimal deg)
%       Pop = m-element vector of total population estimates (2000)
%     House = m-element vector of total housing units (2000)
%  LandArea = m-element vector of land area (square miles)
% WaterArea = m-element vector of water area (square miles)
% StateFIPS = m-element vector of state FIPS code
% PlaceFIPS = m-element vector of place FIPS Code
%
% Example: Extract name of all cities in North Carolina
% NCcity = uscity('Name',strcmp('NC',uscity('ST')))
%
% %  NCcity = 'Aberdeen'
% %            ...
% %           'Zebulon'
%
% Source:
% http://www.census.gov/ftp/pub/tiger/tms/gazetteer/places2k.txt
%
% The place file contains data for all Incorporated and Census Designated
% places in the 50 states, the District of Columbia and Puerto Rico as of 
% the January 1, 2000. 

% Copyright (c) 1994-2006 by Michael G. Kay
% Matlog Version 9 13-Jan-2006 (http://www.ie.ncsu.edu/kay/matlog)

% Input Error Checking ****************************************************
varnames = {'Name','ST','XY','Pop','House','LandArea','WaterArea',...
      'StateFIPS','PlaceFIPS'};
[errstr,varargout] = loaddatafile(varargin,nargout,varnames,mfilename);
if ~isempty(errstr), error(errstr), end
% End (Input Error Checking) **********************************************

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -