assignhere.m

来自「这个是时间序列分析的可视化工具」· M 代码 · 共 17 行

M
17
字号
function assignHere(varargin)
%ASSIGNHERE Creates a variable in the current workspace.
%   ASSIGNHERE is a little trick to get ASSIGNIN to assign a
%   variable in the current workspace.
%
%   Example:  assignHere('test', [1 2 3]);
%   If this were attempted within a function file, it would not be
%   possible to assign in the current workspace, only the caller or
%   base.

%    Doug Hull <hull@mathworks.com>     3/11/2003
%    Copyright 1984-2003 The MathWorks, Inc.
%    This function is not supported by The MathWorks, Inc.
%    It is provided 'as is' without any guarantee of
%    accuracy or functionality.

assignin('caller', varargin{:})

⌨️ 快捷键说明

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