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

📄 getlines.m

📁 一些制作正交曲线网格的matlab源程序
💻 M
字号:
function theResult = getlines(self, theLinesFile)% seagrid/getlines -- Load and plot a lines.%  getlines(self) loads and plots a lines file%   on behalf of self, a "seagrid" object.  If no%   filename is given, the current lines filename%   in self is used. % Copyright (C) 1999 Dr. Charles R. Denham, ZYDECO.%  All Rights Reserved.%   Disclosure without explicit written consent from the%    copyright owner does not constitute publication. % Version of 27-Apr-1999 08:48:25.% Updated    11-Dec-2000 15:11:40.if nargout > 0, theResult = self; endif nargin < 1, help(mfilename), return, endif nargin < 2	theLinesFile = psget(self, 'itsLinesFile');endif ~isempty(theLinesFile) & ~any(theLinesFile == filesep)	theLinesFile = which(theLinesFile);endpsset(self, 'itsLinesFile', theLinesFile)if isempty(theLinesFile), return, endload(theLinesFile)psset(self, 'itsLinesColor',[1 0 1]);theLinesColor = psget(self, 'itsLinesColor');theButtonDownFcn = get(gca, 'ButtonDownFcn');h = findobj('Type', 'line', 'Tag', 'lines');if any(h), delete(h), endtheProjection = psget(self, 'itsProjection');switch theProjection   % Needs cleaning up.case {'none', 'Geographic'}	theProjection = 'Geographic';	x = lon; y = lat;otherwise	sg_proj(theProjection)	[x, y] = sg_ll2xy(lon, lat);	x = real(x);	y = real(y);endhold onh = plot(x, y, '-', 'Color', theLinesColor, ...						'Tag', 'lines');hold offzoomsafe 0set([gca h], 'ButtonDownFcn', theButtonDownFcn)switch theProjectioncase 'none'	xlabel('Longitude')	ylabel('Latitude')otherwise	xlabel('X')	ylabel('Y')	title([theProjection ' Projection'])endself = doupdate(self);if nargout > 0, theResult = self; end

⌨️ 快捷键说明

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