Select Index

Startup and Shutdown

    Starting MATLAB
        Starting MATLAB on Windows Platforms
        Starting MATLAB on UNIX Platforms
        Startup Directory for MATLAB
        Startup Options
        Startup and Calling Java from MATLAB
        Toolbox Path Caching in MATLAB

    Quitting MATLAB
        Confirm Quitting MATLAB
        Running a Script When Quitting MATLAB

Desktop

    Overview of the Desktop
        Example of Desktop--Default Layout
        Summary of Desktop Tools

    Arranging the Desktop--Overview
        Opening and Arranging Tools
        Opening and Arranging Documents
        Examples of Desktop Arrangements
        Saving Desktop Layouts

    Common Desktop Features
        Start Button for Accessing Tools
        Shortcuts for MATLAB--Easily Run a Group of Statements
        Web Browser
        Menus and Context Menus
        Toolbars
        Status Bar
        Sizing, Arranging, and Sorting Columns in Tools
        Keyboard Shortcuts (Accelerators) and Mnemonics
        Selecting Multiple Items
        Cut, Copy, Paste, and Move
        Printing and Page Setup Options for Desktop Tools
        Accessing The MathWorks on the Web

    Fonts, Colors, and Other Preferences
        Fonts Preferences for Desktop Tools
        Colors Preferences for Desktop Tools
        General Preferences for MATLAB
        About Preferences

Running Functions--Command Window and History

    Opening the Command Window
    Running Functions and Programs, and Entering Variables
        Running Statements at the Command Line Prompt
        Running External Programs
        Evaluating or Opening a Selection
        Hyperlinks for Running Functions

    Controlling Input
        Case and Space Sensitivity
        Syntax Highlighting
        Cut, Copy, Paste, and Undo Features
        Enter Multiple Lines Without Running Them
        Entering Multiple Functions in a Line
        Entering Long Statements
        Recalling Previous Lines
        Tab Completion
        Keyboard Shortcuts in the Command Window
        Navigating Above the Command Line

    Controlling Output
        Echoing Execution
        Suppressing Output
        Paging of Output in the Command Window
        Formatting and Spacing Numeric Output
        Clearing the Command Window
        Printing Command Window Contents
        Keeping a Session Log

    Searching in the Command Window
        Find Dialog Box
        Incremental Search

    Preferences for the Command Window
        Format, Display, and Accessibility Preferences
        Keyboard and Indenting Preferences for the Command Window
        See Also

    Command History
        Viewing Statements in the Command History Window
        Using Statements from the Command History Window
        Searching in the Command History Window
        Printing the Command History Window
        Deleting Entries from the Command History Window

    Preferences for Command History
        Settings
        Saving
        See Also

Help for Using MATLAB

    Help Browser Overview
        Resizing the Help Browser
        Adding Your Own Help Files to the Help Browser

    Types of Documentation
        Accessing Documentation on the Web
        Documentation in Other Languages

    Finding Information with the Help Browser
        Contents Listing in the Help Browser
        Index for the Help Browser
        Search Documentation with the Help Browser
        Favorites

    Viewing Documentation in the Help Browser
        Browse to Other Pages
        Links
        Find Text in Displayed Pages
        Copy Information
        Evaluate a Selection
        View the Page Source (HTML)

    Demos in the Help Browser
        Using Demos
        Adding Your Own Demos

    Preferences for the Help Browser
        Product Filter
        PDF Reader--Specifying Its Location
        General--Keep Contents Synchronized
        Help Fonts Preferences--Specifying Font Name, Style, and Size

    Printed Documentation
        Printing a Page from the Help Browser
        Printing the PDF Version of Documentation

    Help Functions
        View Function Reference Pages--the doc Function
        Getting Help in the Command Window--the help Function

    Other Forms of Help
        Documentation for Other Products
        Product-Specific Help Features
        User-Contributed M-Files
        Technical Support
        Newsgroup for MathWorks Products
        Other Resources for MATLAB Information
        Version and License Information
        Provide Feedback

Workspace, Search Path, and File Operations

    MATLAB Workspace
        Opening the Workspace Browser
        Viewing and Editing Values in the Current Workspace
        Saving the Current Workspace
        Loading a Saved Workspace and Importing Data
        Changing and Copying Variable Names
        Deleting Workspace Variables
        Viewing Base and Function Workspaces Using the Stack
        Creating Graphics from the Workspace Browser
        Opening Variables and Objects for Viewing and Editing

    Viewing and Editing Workspace Variables with the Array Editor
        Opening the Array Editor
        Viewing and Editing Cell Arrays, Structures, and Multidimensional Arrays
        Navigating and Editing Shortcut Keys for the Array Editor
        Changing Array Size, Content, and Format of Elements in the Array Editor
        Cut, Copy, Paste, and Delete in the Array Editor
        Exchanging Data with the Command Window
        Exchanging Data with Excel
        Creating Graphs and Variables from the Current Selection
        Preferences for the Array Editor

    Search Path
        About the Search Path
        How the Search Path Determines Which Function to Use
        How MATLAB Finds the Search Path, pathdef.m
        Viewing and Setting the Search Path
        Using the Path in Future Sessions
        Recovering from Problems with the Search Path

    File Management Operations
        Current Directory Field
        Current Directory Browser
        Viewing and Making Changes to Directories
        Creating, Renaming, Copying, and Removing Directories and Files
        Opening and Running Files
        Finding Files and Content Within Files
        Accessing Source Control Features
        Preferences for the Current Directory Browser

Editing and Debugging M-Files

    Begin with Existing Code
        Create M-Files from Command Window and History
        Use Existing M-Files and Examples

    Ways to Edit and Debug M-Files
    Starting, Customizing, and Closing the Editor/Debugger
        Creating a New File in the Editor/Debugger
        Opening Existing Files in the Editor/Debugger
        Opening the Editor Without Starting MATLAB
        Arranging Editor/Debugger Documents
        Preferences for the Editor/Debugger
        Creating and Editing Other Text File Types
        Closing the Editor/Debugger

    Creating, Editing, and Running Files
        Entering Statements
        Appearance of an M-File
        Keyboard and Mouse Shortcuts in the Editor/Debugger
        Navigating in an M-File
        Finding Text in Files
        Opening a Selection in an M-File
        Saving M-Files
        Running M-Files from the Editor/Debugger
        Printing M-Files
        Closing M-Files

    Debugging M-Files
        Finding Errors in M-Files
        Debugging Example--The Collatz Problem
        Debugging Process and Features
        Preparing for Debugging
        Setting Breakpoints
        Running an M-File with Breakpoints
        Stepping Through an M-File
        Examining Values
        Correcting Problems and Ending Debugging
        Conditional Breakpoints
        Breakpoints in Anonymous Functions
        Error Breakpoints

    Rapid Code Iteration Using Cells
        Defining Cells
        Navigating and Evaluating with Cells
        Using Cells in Function M-Files

Tuning and Managing M-Files

    Visual Directory in Current Directory Browser
        Navigate Directory Hierarchy
        View and Edit Files
        Sort by Contents.m
        Run, Make Thumbnail, Delete File (Show Actions)
        Show File Sizes
        Show Function or Script

    Directory Reports in Current Directory Browser
        Accessing and Using Directory Reports
        TODO/FIXME Report
        Help Report
        Contents Report
        Dependency Report
        File Comparison Report
        Coverage Report

    M-Lint Code Check Report
        Accessing M-Lint
        M-Lint Graphical User Interface (GUI)
        Making Changes Based on M-Lint Messages

    Profiling for Improving Performance
        What Is Profiling?
        Profiling Process Guidelines
        The Profiler
        Profile Summary Report
        Profile Detail Report
        The profile Function

Publishing Results

    Publishing to HTML, XML, LaTeX, Word, and PowerPoint Using Cells
        Overview of Publishing
        Example of Publishing Without Text Markup
        Example of Publishing with Text Markup

    Marking Up Text in Cells for Publishing
    Publishing M-Files Using Cells
        How to Publish an M-File
        About Published M-Files
        Modifying Published Output Via Preferences

    Notebook for Publishing to Word
        Creating or Opening an M-Book
        Entering MATLAB Commands in an M-Book
        Protecting the Integrity of Your Workspace in M-Books
        Ensuring Data Consistency in M-Books
        Debugging and Notebook

    Defining MATLAB Commands as Input Cells for Notebook
        Defining Cell Groups for Notebook
        Defining Autoinit Input Cells for Notebook
        Defining Calc Zones for Notebook
        Converting an Input Cell to Text with Notebook

    Evaluating MATLAB Commands with Notebook
        Evaluating Cell Groups with Notebook
        Evaluating a Range of Input Cells with Notebook
        Evaluating a Calc Zone with Notebook
        Evaluating an Entire M-Book
        Using a Loop to Evaluate Input Cells Repeatedly with Notebook
        Converting Output Cells to Text with Notebook
        Deleting Output Cells with Notebook

    Printing and Formatting an M-Book
        Printing an M-Book
        Modifying Styles in the M-Book Template
        Choosing Loose or Compact Format for Notebook
        Controlling Numeric Output Format for Notebook
        Controlling Graphic Output for Notebook

    Configuring Notebook
    Notebook Feature Reference

Source Control Interface

    Source Control Interface on Windows Platforms
        Setting Up the Source Control Interface
        Checking Files Into and Out of Source Control from MATLAB
        Additional Source Control Actions
        Performing Source Control Actions from the Editor, Simulink, or Stateflow
        Troubleshooting Source Control Problems

    Source Control Interface on UNIX Platforms
        Specifying the Source Control System
        Checking Files Into the Source Control System
        Checking Files Out of the Source Control System
        Undoing the Checkout

GUI Reference for Desktop Tools and Development Environment

    Arranging the Desktop
        Opening Desktop Tools
        Navigating Among Desktop Tools
        Closing Desktop Tools
        Resizing Tools
        Moving Tools Within the Desktop
        Moving Tools Out of the Desktop (Undocking)
        Moving Tools into the Desktop (Docking)
        Grouping (Tabbing) Tools Together
        Opening Documents
        Navigating Among Documents--The Document Bar
        Positioning, Moving, and Resizing Documents
        Closing Documents
        Moving Documents and Tools Out of the Desktop (Undocking)
        Docking Documents and Tools
        Saved Desktop Layouts

    Adding Your Own Toolboxes to the Development Environment
        Adding Your Own Toolboxes to the Start Button
        Adding Your Own Help Files in the Help Browser
        Adding Your Own Demos

    Preferences for the Editor/Debugger
        General Preferences for the Editor/Debugger
        Display Preferences for the Editor/Debugger
        Keyboard and Indenting Preferences for the Editor/Debugger
        Language Preferences for the Editor/Debugger
        M Language Preferences
        C/C++ Language Preferences
        Java Language Preferences
        HTML Language Preferences
        Publishing Preferences for the Editor/Debugger
        Publishing Images Preferences for the Editor/Debugger
        Autosave Preferences for the Editor/Debugger
        See Also

Examples