?? nccity.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 + -