matlab中的“gcf”是啥意思?

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了matlab中的“gcf”是啥意思?相关的知识,希望对你有一定的参考价值。

参考技术A

返回当前Figure 。

1、MATLAB 中gcf、gca 以及gco 的区别
gcf 返回当前Figure 对象的句柄值、gca 返回当前axes 对象的句柄值、gco 返回当前鼠标单击的句柄值,该对象可以是除root 对象外的任意图形、对象,并且Matlab 会把当前图形对象的句柄值存放在Figure 的CurrentObject属性中。

1、MATLAB介绍

是matrix&laboratory两个词的组合,意为矩阵工厂(矩阵实验室)。是由美国mathworks公司发布的主要面对科学计算、可视化以及交互式程序设计的高科技计算环境。

3、MATLAB功能

它将数值分析、矩阵计算、科学数据可视化以及非线性动态系统的建模和仿真等诸多强大功能集成在一个易于使用的视窗环境中,为科学研究、工程设计以及必须进行有效数值计算的众多科学领域提供了一种全面的解决方案,并在很大程度上摆脱了传统非交互式程序设计语言(如C、Fortran)的编辑模式,代表了当今国际科学计算软件的先进水平。

matlab中的exist是啥意思

exist用来判断变量或函数是否存在:

 exist  Check if variables or functions are defined.
    exist('A') returns:
      0 if A does not exist
      1 if A is a variable in the workspace
      2 if A is an M-file on MATLAB's search path.  It also returns 2 when
           A is the full pathname to a file or when A is the name of an
           ordinary file on MATLAB's search path
      3 if A is a MEX-file on MATLAB's search path
      4 if A is a Simulink model or library file on MATLAB's search path
      5 if A is a built-in MATLAB function
      6 if A is a P-file on MATLAB's search path
      7 if A is a directory
      8 if A is a class (exist returns 0 for Java classes if you
        start MATLAB with the -nojvm option.)
 
    exist('A') or exist('A.EXT') returns 2 if a file named 'A' or 'A.EXT'
    and the extension isn't a P or MEX function extension.
 
    exist('A','var') checks only for variables.
    exist('A','builtin') checks only for built-in functions.
    exist('A','file') checks for files or directories.
    exist('A','dir') checks only for directories.
    exist('A','class') checks only for classes.
 
    If A specifies a filename, MATLAB attempts to locate the file, 
    examines the filename extension, and determines the value to 
    return based on the extension alone.  MATLAB does not examine 
    the contents or internal structure of the file.
 
    When searching for a directory, MATLAB finds directories that are part
    of MATLAB's search path.  They can be specified by a partial path.  It
    also finds the current working directory specified by a partial path,
    and subdirectories of the current working directory specified by
    a relative path.
 
    exist returns 0 if the specified instance isn't found.

参考技术A 检查变量或函数是否被定义 返回0是没有定义 返回1是存在定义在workspace里面 参考技术B >> help exist
EXIST Check if variables or functions are defined.
EXIST('A') returns:
0 if A does not exist
1 if A is a variable in the workspace
2 if A is an M-file on MATLAB's search path. It also returns 2 when
A is the full pathname to a file or when A is the name of an
ordinary file on MATLAB's search path
3 if A is a MEX-file on MATLAB's search path
4 if A is a MDL-file on MATLAB's search path
5 if A is a built-in MATLAB function
6 if A is a P-file on MATLAB's search path
7 if A is a directory
8 if A is a Java class

>> exist('map')

ans =

7
7 if A is a directory

本回答被提问者和网友采纳

以上是关于matlab中的“gcf”是啥意思?的主要内容,如果未能解决你的问题,请参考以下文章

matlab中的eval是啥意思

matlab中的exist是啥意思

matlab中的mean函数是啥意思啊,如何使用

matlab中的1e10是啥意思?

matlab 单元数组是啥意思?

matlab中inf是啥意思