3.66667

3.7 | 6 ratings Rate this file 11 Downloads (last 30 days) File Size: 1.09 KB File ID: #4431

Clear WorkSpace, Command Window and History simultaneously

by Shanrong Zhang

 

02 Feb 2004 (Updated 04 Feb 2004)

Clear all simultaneously.

| Watch this File

File Information
Description

This m-script can be used to clear the workspace, command window and command history simultaneously from the command input.

MATLAB release MATLAB 6.5 (R13)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (6)
08 Nov 2006 yiming wang

a useful one

04 Apr 2008 Robbert Eggermont  
25 Apr 2008 lanh tran

This's what I need.

30 Sep 2008 Iwon Tellu

This doesn't work, because the last line isn't recognized.

04 Oct 2008 Moises Sancho

It's a great m- file, but I think it would be a lot easier if just write "clear all"

18 Jun 2011 Ali Iraji

This command works for new versions of Matlab to clear the command history window:

com.mathworks.mlservices.MLCommandHistoryServices.removeAll

-Reference: Yair Altman

Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
clear Shanrong Zhang 22 Oct 2008 07:13:44
workspace Shanrong Zhang 22 Oct 2008 07:13:44
history Shanrong Zhang 22 Oct 2008 07:13:44
command window Shanrong Zhang 22 Oct 2008 07:13:44
command window Jaffer 15 Jun 2009 06:28:50
clear Ali Iraji 18 Jun 2011 11:07:14
workspace Benjamin 19 Aug 2011 04:59:04
clear workspace history aklause 25 Aug 2011 10:39:50
history Nikos zaronikos 05 Dec 2011 13:40:05

Contact us at files@mathworks.com