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

📄 fcnname.m

📁 matlab7 gads工具箱
💻 M
字号:
function name = fcnName(h)
%Convert a function handle into a string.
%   fcnName(h) is a string containind the display name of the funciton
%   handle h;
%
%   MATLAB does not provide any mechanism for converting a function handle to
%   a string one can display, so here we use a hack of capturing the output
%   from display and pulling the name out of that.
%
%   This is used in the code generation tool.

%   Copyright 2004 The MathWorks, Inc.
%   $Revision: 1.3 $  $Date: 2004/01/16 16:49:58 $

if(isempty(h))
    name = '''''';
else
    name = evalc('display(h)');
    start = find(name == '@');
    name = name(start:end);
    last = find(name == 10) - 1;
    name = name(1:last);
end

⌨️ 快捷键说明

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