data.m
来自「一些制作正交曲线网格的matlab源程序」· M 代码 · 共 38 行
M
38 行
function theResult = data(self, theNewData)% ps/data -- Set/get "ps" data.% data(self) gets the data associated% with self, a "ps" object.% data(self, theNewData) sets the data% associated with self to theNewData. % 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 09-Dec-1999 00:34:18.% Updated 09-Dec-1999 05:26:41.if nargout > 0, theResult = []; endif nargin < 1, help(mfilename), return, endtheHandle = handle(self);u = get(theHandle, 'UserData');if nargin < 2 result = u.ps_Data;else u.ps_Data = theNewData; set(theHandle, 'UserData', u) result = self;endif nargin > 0 theResult = result;else assignin('caller', 'ans', result) disp(result)end
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?