cch - close, clear, home

版本 1.22.0.0 (1.8 KB) 作者: Sky Sartorius
CCH saves keystrokes in resetting MATLAB by running the commands close, clear, and home.
495.0 次下载
更新时间 2016/2/23

查看许可证

CCH accepts arguments to be passed to the CLEAR command. If one of the arguments is '-BREAKS', breakpoints will not be cleared.
By default (modifiable), CCH by itself with no arguments is the same as CCH -BREAKS.
Over the years, I've used a micro-script version of this on the order of dozens or even hundreds of times in a typical day of using MATLAB. It's also the first line of many of my utility scripts and shortcuts.
There are two similar submissions on the file exchange, but both use "clc" instead of "home", which in my experience sometimes results in throwing away useful command window history information when you wish you hadn't. I'm therefore a proponent using "home" over "clc" — perhaps I can convert some users with this submission.

引用格式

Sky Sartorius (2024). cch - close, clear, home (https://www.mathworks.com/matlabcentral/fileexchange/43264-cch-close-clear-home), MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R2013a
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Workspace Variables and MAT-Files 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
版本 已发布 发行说明
1.22.0.0

Simplified fclose.

1.21.0.0

'all' argument no longer default for the sake of speed.

1.2.0.0

breakpoint preservation; passing args to clear command

1.1.0.0

breakpoint preservation; passing args to clear command

1.0.0.0