Development Environment The Development Environment covers starting and quitting MATLAB, and the tools and functions that help you to work with matlAB variables and files, including the matlab desktop. For more information about the topics covered here, see the corresponding topics in"Development Environment", which is available in the online as well as in the printed manual, Using MATLAB Starting and Quitting MATLAB Start and quit MaTLAB and perform operations upon (p.2-2) startup and shutdown MATLAB Desktop(p 2-3) The graphical user interface to MATLAB. Desktop Tools(p 2-5) Use the Command Window for running functions and entering variables, Start button for launching tools, demos, and documentation, Help browser for accessing documentation, Current Directory browser for accessing files, Workspace browser for viewing variables, Editor/Debugger for modifying MATLAB program files M-files), and Profiler for optimizing M-file performance Other development environment Import and export data, improve M-file performance, Features(p. 2-16) interface with source control systems, and access MATLAB from Microsoft Word using the MATLAB Notebook feature
2 Development Environment The Development Environment covers starting and quitting MATLAB, and the tools and functions that help you to work with MATLAB variables and files, including the MATLAB desktop. For more information about the topics covered here, see the corresponding topics in “Development Environment”, which is available in the online as well as in the printed manual, Using MATLAB. Starting and Quitting MATLAB (p. 2-2) Start and quit MATLAB and perform operations upon startup and shutdown. MATLAB Desktop (p. 2-3) The graphical user interface to MATLAB. Desktop Tools (p. 2-5) Use the Command Window for running functions and entering variables, Start button for launching tools, demos, and documentation, Help browser for accessing documentation, Current Directory browser for accessing files, Workspace browser for viewing variables, Editor/Debugger for modifying MATLAB program files (M-files), and Profiler for optimizing M-file performance. Other Development Environment Features (p. 2-16) Import and export data, improve M-file performance, interface with source control systems, and access MATLAB from Microsoft Word using the MATLAB Notebook feature
Development Environmen Starting and Quitting MATLAB Starting MATLAB On Windows platforms, to start MATLAB, double-click the MatLAB shortcut On UNIX platforms, to start MATLAB, type matlab at the operating system rom After starting MATLAB, the maTlAB desktop opens-see"MATLAB You can change the directory in which MATLAB starts, define startup options including running a script upon startup, and reduce startup time in some situations. For more information, see the documentation for starting MATLaB Quitting MATLaB To end your MATLAB session, select Exit MATLAB from the File menu in the desktop, or type quit in the Command window. To execute specified functions each time MATLAB quits, such as saving the workspace you can create and run a finish. m script 2-2
2 Development Environment 2-2 Starting and Quitting MATLAB Starting MATLAB On Windows platforms, to start MATLAB, double-click the MATLAB shortcut icon on your Windows desktop. On UNIX platforms, to start MATLAB, type matlab at the operating system prompt. After starting MATLAB, the MATLAB desktop opens—see “MATLAB Desktop” on page 2-3. You can change the directory in which MATLAB starts, define startup options including running a script upon startup, and reduce startup time in some situations. For more information, see the documentation for starting MATLAB. Quitting MATLAB To end your MATLAB session, select Exit MATLAB from the File menu in the desktop, or type quit in the Command Window. To execute specified functions each time MATLAB quits, such as saving the workspace, you can create and run a finish.m script
MATLAB Desktop MATLAB Deskt。p hen you start MATLAB, the MATLAB desktop appears, containing tools (graphical user interfaces) for managing files, variables, and applications associated with matlaB The first time MATLAB starts, the desktop appears as shown in the following Use tab to go to Current Get help View or change Click to move window Close window Directory browser. MATLAB current outside of desktop 2 MATLAB Eile Edit yiew Web Window Help 曲c尊? Currert Directory| D:Vmymfles G副 Stade To get started, select "MATLAB Help" from the Help nenu. E Name Bytea clas>> az workspace Current Directory mmand History --8/12/028:52AH- Expand to view View or use previously run functions. Drag the separator bar to resize windows. tools for your products
MATLAB Desktop 2-3 MATLAB Desktop When you start MATLAB, the MATLAB desktop appears, containing tools (graphical user interfaces) for managing files, variables, and applications associated with MATLAB. The first time MATLAB starts, the desktop appears as shown in the following illustration. View or change current directory. View or use previously run functions. Enter MATLAB functions. Close window. Drag the separator bar to resize windows. Click to move window outside of desktop. Get help. Expand to view documentation, demos, and tools for your products. Use tab to go to Current Directory browser
Development Environmen resizing the tools in it. Use the view menu to open or close the tools. You ca also move tools outside the desktop or move them back into the desktop (docking). All the desktop tools provide common features such as context menus and keyboard shortcuts You can specify certain characteristics for the desktop tools by selecting Preferences from the File menu. For example you can specify the font characteristics for Command window text. For more information click the Help button in the Preferences dialog box 2-4
2 Development Environment 2-4 You can change the way your desktop looks by opening, closing, moving, and resizing the tools in it. Use the View menu to open or close the tools. You can also move tools outside the desktop or move them back into the desktop (docking). All the desktop tools provide common features such as context menus and keyboard shortcuts. You can specify certain characteristics for the desktop tools by selecting Preferences from the File menu. For example, you can specify the font characteristics for Command Window text. For more information, click the Help button in the Preferences dialog box
Desktop Tools This section provides an introduction to the matlab desktop tools. You can also use MATLAB functions to perform most of the features found in the desktop tools The tools are “ Command window” ·“ Start Button and launch pad” “ Help b ·“ Current Directory Browser” ·“ Array Editor” ·“ Editor/ Debugger” Command wind。w Use the Command window to enter variables and run functions and m-files or more information on controlling input and output, see"Controlling Command window Input and output on page 3-28 2 Command window 口 Eile Edit yiew Web Window Help riables at the MATLAB prompt > magic(4) MATLAB displays the -fans 25
Desktop Tools 2-5 Desktop Tools This section provides an introduction to the MATLAB desktop tools. You can also use MATLAB functions to perform most of the features found in the desktop tools. The tools are • “Command Window” • “Command History” • “Start Button and Launch Pad” • “Help Browser” • “Current Directory Browser” • “Workspace Browser” • “Array Editor” • “Editor/Debugger” • “Profiler” Command Window Use the Command Window to enter variables and run functions and M-files. For more information on controlling input and output, see “Controlling Command Window Input and Output” on page 3-28. Type functions and variables at the MATLAB prompt. MATLAB displays the results