Desktop Tools and Development Environment |
Rapid Code Iteration Using Cells
When working with MATLAB, you often experiment with your code--modifying it, testing it, and updating it--until you have an M-file that does what you want. Use the cell features in the MATLAB Editor/Debugger to make the experimental phase of your work with M-file scripts easier. You can also use cell features with function M-files, but there are some restrictions--see Using Cells in Function M-Files.
If you are viewing this document in the Help browser, you can watch the Rapid Code Iteration Using Cells video demo for an overview of the major functionality.
The overall structure of many M-file scripts seems to naturally consist of multiple sections. Especially for larger files, you often focus efforts on a single section at a time, refining the code in just that section. To facilitate this process, use M-file cells, where a cell is a defined section of code.
This is the overall process of using cells for rapid code iteration:
Error Breakpoints | Defining Cells |
© 1994-2005 The MathWorks, Inc.