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

📄 nccity.m

📁 物流分析工具包。Facility location: Continuous minisum facility location, alternate location-allocation (ALA)
💻 M
字号:
function varargout = nccity(varargin)
%NCCITY North Carolina cities with populations of at least 10,000 data.
%      s = nccity          Output all variables as structure 's'
%[x1,x2] = nccity          Output only first 1, 2, etc., variables
%      s = nccity('x',...) Output only variables 'x', ... as structure 's'
%[x,...] = nccity('x',...) Output variables 'x', ... as variables
%        = nccity(...,is)  Output subset 'x(is)' using SUBSETSTUCT(s,is)
%                          where 'is' is vector of elements to extract
%
% Loads data file "nccity.mat" that contain the following variables:
%   Name = m-element cell array of m city name strings
%     XY = m x 2 matrix of city lon-lat (in decimal deg)
%    Pop = m-element vector of total population estimates (2000)
%
% Example: Extract name of all cities in North Carolina
% NCcity = nccity('Name')
%
% %  NCcity = 'Albemarle'
% %            ...
% %           'Winston-Salem'
%                          
% (Subset of USCITY10K)
%
% Derived from Source:
% http://www.census.gov/ftp/pub/tiger/tms/gazetteer/places2k.txt

% 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','XY','Pop'};
[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 + -