Re: [問題] 清除command window和history的指令

看板MATLAB作者時間14年前 (2012/01/16 08:28), 編輯推噓4(402)
留言6則, 5人參與, 最新討論串2/2 (看更多)
回一篇有點久 以前的文章XD 因為之前也有想有沒有指令 可以直接將command history的內容直接清光 後來用google查了一下 發現國外有個討論帖有提供直接用指令清除 試過之後確實可以 (只是那個指令有點長XD) 試試看底下這個指令吧XD com.mathworks.mlservices.MLCommandHistoryServices.removeAll http://tinyurl.com/6oangun http://jjbuchholz.blogspot.com/2011/11/matlab-clear-command-history.html#! /2011/11/matlab-clear-command-history.html ======= 清除workspace 用clear 清除command window 用clc 清除command history 用com.mathworks.mlservices.MLCommandHistoryServices.removeAll XD ※ 引述《kobenein (哈哈哈)》之銘言: : 清除workspace的指令是clear : 那有沒有清除command window : 以及command history的指令 : 想要一次把清除這三項的指令加到shortcut裡面 : 謝謝! ※ 編輯: bookticket 來自: 140.112.211.142 (01/16 08:32)

01/16 09:59, , 1F
I 服了 you
01/16 09:59, 1F

01/16 13:23, , 2F
也太長了
01/16 13:23, 2F

01/16 13:46, , 3F
存成shortcut之後 就不用打這個指令 所以長一點其實
01/16 13:46, 3F

01/16 13:46, , 4F
是沒關係的XD
01/16 13:46, 4F

01/16 18:53, , 5F
厲害
01/16 18:53, 5F

01/19 00:15, , 6F
加一個 close all 。把所有 plot 都關掉。
01/19 00:15, 6F
文章代碼(AID): #1F4sz6uw (MATLAB)
文章代碼(AID): #1F4sz6uw (MATLAB)