haibaraxx的个人博客分享 http://blog.sciencenet.cn/u/haibaraxx

博文

Matlab: clear clc home close

已有 2262 次阅读 2016-8-22 05:11 |个人分类:Matlab|系统分类:科研笔记| Home, clear, close, clc

clear - remove items from workspace, freeing up system memory

% clear a single variable/function a

Syntax: clear a


% clear a list of variables/functions

Syntax: clear a b c d e


% clear everything

Syntax: clear

    或者 clear all


clc - CLear Command window, i.e. clears all input and output from the Command Window display. It does not clear any variable or function.


home - moves the cursor to the upper-left conner of the Command Window. It gives more space for display in the Command Window without clear anything.


close - deletes the current figure or specificed figures.

% delete the current figure

Syntax: close


% delete the figure f

Syntax: close f


% delete all non-hidden figures

Syntax: close all




https://wap.sciencenet.cn/blog-3031432-997869.html

上一篇:Matlab: help
下一篇:Matlab: 科学计数法
收藏 IP: 134.1.1.*| 热度|

0

该博文允许注册用户评论 请点击登录 评论 (0 个评论)

数据加载中...

Archiver|手机版|科学网 ( 京ICP备07017567号-12 )

GMT+8, 2024-6-1 16:18

Powered by ScienceNet.cn

Copyright © 2007- 中国科学报社

返回顶部