getfun.m

来自「matlab算法集 matlab算法集」· M 代码 · 共 22 行

M
22
字号
function y = getfun (f)
%----------------------------------------------------------------
% Usage:       y = getfun (f)
%
% Description: Check to see that whether or not a given function
%              f is present as an inline function or as an
%              M-file.  
%
% Inputs:      f = string containing name of inline or M-file
%                  function, or empty string.
%
% Outputs:     y = true if f is an inline function or an M-file
%                  function.  False if f is an empty string.
%----------------------------------------------------------------
   y = isa (f,'inline');
   if ~y
      y = ~strcmp(f,'');
   end
%----------------------------------------------------------------


⌨️ 快捷键说明

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