Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
Commands history

Subject: Commands history

From: Samoline1 Linke

Date: 3 Feb, 2010 09:45:21

Message: 1 of 2

In matlab, after 2-3 days whenever I try to repeat any command, I dont find it in matlab command history....Also when I press up key i dont see that...

Is there any way to change the settings so that I could retain the commands for longer time`?

Subject: Commands history

From: Steven Lord

Date: 3 Feb, 2010 18:55:54

Message: 2 of 2


"Samoline1 Linke" <maganatewoman@yahoo.com> wrote in message
news:hkbgjh$2i6$1@fred.mathworks.com...
> In matlab, after 2-3 days whenever I try to repeat any command, I dont
> find it in matlab command history....Also when I press up key i dont see
> that...
>
> Is there any way to change the settings so that I could retain the
> commands for longer time`?

The Command History length is finite; if you execute many commands the older
ones are replaced by new commands.

If you have a specific set of commands you execute frequently, I recommend
creating a script or function file containing those commands, or creating a
shortcut for those commands. You can do the former by selecting the
commands in the Command History window, right-clicking, and selecting
"Create M-file" or through any other method you normally use to create
scripts or functions; for the latter, read this section of the documentation
for instructions:

http://www.mathworks.com/access/helpdesk/help/techdoc/matlab_env/bq37azl-1.html

You can also use the DIARY function or the -logfile startup option to
capture a log of the commands you use and the output they generate and copy
and paste from that file.

--
Steve Lord
slord@mathworks.com
comp.soft-sys.matlab (CSSM) FAQ: http://matlabwiki.mathworks.com/MATLAB_FAQ

Tags for this Thread

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us