How can I undo multiple command lines in command window?

4 ビュー (過去 30 日間)
Abdullah Saleh
Abdullah Saleh 2015 年 2 月 20 日
回答済み: Abdullah Saleh 2015 年 2 月 20 日
Hello Dears,
I'm new to Matlab and I want to know how I delete back couple of lines because Undo Button only delete last line?

採用された回答

Stephen23
Stephen23 2015 年 2 月 20 日
編集済み: Stephen23 2015 年 2 月 20 日
Just like in most programming languages, in MATLAB one cannot "undo" a command: once an operation has been run, its results will still have occurred regardless of what you do with the command window. The command window is simply a visual record of what has been run. What you can do is either re-run a command OR remove the record:
  • re-run any command by typing it again, or using the up and down keys to select an operation.
  • clear any variables from the workspace.
  • use clc to clear the command window text.

その他の回答 (1 件)

Abdullah Saleh
Abdullah Saleh 2015 年 2 月 20 日
Thanks Stephen Cobeldick
Actually the problem that I wanted to write the program in Command Window :D I'm new to MATLAB but later I found that code should be saved in Script.m using editor :)
I appreciate your support

カテゴリ

Help Center および File ExchangeEntering Commands についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by