Main Content

本页的翻译已过时。点击此处可查看最新英文版本。

类修改和更新

编辑和调试类定义、自动类更新

MATLAB® 会重新加载类定义以响应大多数修订。您不需要在进行修订后调用 clear classes。如果 MATLAB 无法更新现有对象以支持修订后的类定义,请仅清除这些对象。

函数

edit编辑或创建文件

主题

Use of Editor and Debugger with Classes

Accessing class files from the editor and debugger provides an effective environment for class development.

Automatic Updates for Modified Classes

MATLAB updates instances of a class when you change the class definition. In some cases, you must clear the class before the changes can be applied.

MATLAB Code Analyzer Warnings

The MATLAB Code Analyzer provides guidance while you write code.