Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How to clear comand history from command window?

1,288 views
Skip to first unread message

Sprinceana

unread,
Mar 27, 2009, 7:13:01 AM3/27/09
to
Is there a command like clc(for screen of command window) and clear all(for variables) to write in command window so that he clears automatically my command history?


I know in menu edit i can clear but i'm interested if there is a command window (command) to clear my history commands in matlab.

Thank you!

Yair Altman

unread,
Mar 27, 2009, 7:55:03 AM3/27/09
to
"Sprinceana " <miha...@yahoo.com> wrote in message <gqicbt$dmd$1...@fred.mathworks.com>...

> Is there a command like clc(for screen of command window) and clear all(for variables) to write in command window so that he clears automatically my command history?
>
>
> I know in menu edit i can clear but i'm interested if there is a command window (command) to clear my history commands in matlab.
>
> Thank you!


com.mathworks.mlservices.MLCommandHistoryServices.removeAll

Yair Altman
http://UndocumentedMatlab.com

Harish Babu Kankanala

unread,
Feb 21, 2013, 5:48:06 AM2/21/13
to
"Yair Altman" wrote in message <gqieqn$od4$1...@fred.mathworks.com>...
> "Sprinceana " <miha...@yahoo.com> wrote in message
Hi,
I guess below command would full fill your requirement.
com.mathworks.mlservices.MLCommandHistoryServices.removeAll

regards,
Harish
0 new messages