Programming |
Development Environment
This section covers the following topics:
Workspace Browser
The Workspace browser is a graphical interface to the variables stored in the MATLAB base and function workspaces. You can view, modify, save, load, and create graphics from workspace data using the browser. Select View -> Workspace to open the browser.
To view function workspaces, you need to be in debug mode.
For more information: See MATLAB Workspace in the MATLAB Desktop Tools and Development Environment documentation.
Using the Find and Replace Utility
Find any word or phrase in a group of files using the Find and Replace utility. Click on View -> Current Directory, and then click on the binoculars icon at the top of the Current Directory window.
When entering search text, you don't need to put quotes around a phrase. In fact, parts of words, like win
for windows
, will not be found if enclosed in quotes.
For more information: See Finding and Replacing a String in the MATLAB Desktop Tools and Development Environment documentation.
Commenting Out a Block of Code
To comment out a block of text or code within the MATLAB editor,
For more information: See Commenting in the MATLAB Desktop Tools and Development Environment documentation.
Creating M-Files from Command History
If there is part of your current MATLAB session that you would like to put into an M-file, this is easily done using the Command History window:
Editing M-Files in EMACS
If you use Emacs, you can download editing modes for editing M-files with GNU-Emacs or with early versions of Emacs from the MATLAB Central Web site:
At this Web site, select File Exchange, and then Utilities -> Emacs.
For more information: See General Preferences for the Editor/Debugger in the MATLAB Desktop Tools and Development Environment documentation.
Help | M-File Functions |
© 1994-2005 The MathWorks, Inc.