Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

MATLAB undo a command

Tags:

undo

matlab

I am currently developing a basic image processing application on MATLAB. I have to implement undo to previous state feature. I searched net there is uiundo but it only undos GUI actions. Is there a simple command to undo. Thanks.

like image 868
serdar Avatar asked Apr 13 '12 11:04

serdar


People also ask

How do I recall a previous command in MATLAB?

To recall a deleted entry, right-click and select Undo Delete, or press Ctrl+Z. To delete all entries, click (or in MATLAB Online), and then select Clear Command History from the context menu.

How do I delete a previous command in MATLAB?

Use the clc command. and select the commands and figures you want to remove. to delete the selected items. Under History Settings, tap Clear All History.

How do I go back in MATLAB?

Accepted Answer The only way to go back to a previous iteration is to use a while loop and make the loop counter the appropriate previous value and then "continue".

How do you undo a command in octave?

Octave uses Emacs key bindings by default. In Emacs you would first do Ctrl + G , after which Ctrl + _ (or Ctrl + Shift + - ) would undo.


1 Answers

If you have plenty of memory to spare, you could store all of your program states in a structure and then push this structure into a circular buffer. The number of elements in the buffer would determine the number of levels of undo.

like image 64
learnvst Avatar answered Nov 03 '22 23:11

learnvst