Development Environmen Command History Statements you enter in the Command Window are logged in the Command History. In the Command History, you can view previously run statements and copy and execute selected statement ind History Eile Edit Yiew Web Window Help --8/12/028:52AM一一多 which coll start of each session collatzplot(3) Select one or more lines and right-click to copy load theta evaluate. or create an 2(17) M-file from the selection t;Y]=ode23(' lotka'[02][20:20]) [t,y]=ode23( lotka',[02],[10:10 To save the input and output from a matlab session to a file, use the diary function Running External Programs You can run external programs from the matLAB Command Window. The exclamation point character is a shell escape and indicates that the rest of the input line is a command to the operating system. This is useful for invoking utilities or running other programs without quitting MATLAB On Linux, for examl ple invokes an editor called emacs for a file named magik. m. When you quit the external program, the operating system returns control to MATLAB. 2-6
2 Development Environment 2-6 Command History Statements you enter in the Command Window are logged in the Command History. In the Command History, you can view previously run statements, and copy and execute selected statements. To save the input and output from a MATLAB session to a file, use the diary function. Running External Programs You can run external programs from the MATLAB Command Window. The exclamation point character ! is a shell escape and indicates that the rest of the input line is a command to the operating system. This is useful for invoking utilities or running other programs without quitting MATLAB. On Linux, for example, !emacs magik.m invokes an editor called emacs for a file named magik.m. When you quit the external program, the operating system returns control to MATLAB. Timestamp marks the start of each session. Select one or more lines and right-click to copy, evaluate, or create an M-file from the selection
Start Button and launch pad The MATLAB Start button provides easy access to tools, demos, and documentation. Just click the button to see the options .MATLAB le Edit view Web window Help 自口。尊? Currert Directory D:mymfiles 区 AM--冬 d Toolboxes Simulink 莓 Blocksets 1T Desktop Tools b g.Demos 五 Start The Launch Pad provides similar access in a tree view Launch Pad □区 JAMATLAB tfBlocksets Help Browser Use the Help browser to search and view documentation and demos for all your Math Works products. The Help browser is a Web browser integrated into the matLAB desktop that displays hTML documents 27
Desktop Tools 2-7 Start Button and Launch Pad The MATLAB Start button provides easy access to tools, demos, and documentation. Just click the button to see the options. The Launch Pad provides similar access in a tree view. Help Browser Use the Help browser to search and view documentation and demos for all your MathWorks products. The Help browser is a Web browser integrated into the MATLAB desktop that displays HTML documents
Development Environmen To open the Help browser, click the help button in the toolbar, or type helpbrowser in the Command window Tabs in the Help Navigator pane provide different ways to find documentation and demos documentation in the display pane Use the close box to hide the pane. Drag the separator bar to adjust the width of the panes File Edit Yiew Go Web WindowHelp lelp Navigator →6 Find in page Product filter: C All Selected MATLAB Release 13 Add to Favorites Index Searc Demos D Begin he Begin Her E Release 13 Release Notes Release 13 BMATLAB What's New sIgnal Processing Toolbox Osim Performance Acceleration- New intemal performance acceleration speeds up execution of functions and scripts OCDMA Reference Blockset in many M-file applications 9 Communications Blockset for MATLAB and other products from the d O support and Web services Release Notes describe new features, new products, and Product Documentation and Demos MATLAB Documentation provides complete information about using MATLAB The Help browser consists of two panes, the Help Navigator, which you use to find information, and the display pane, where you view the information
2 Development Environment 2-8 To open the Help browser, click the help button in the toolbar, or type helpbrowser in the Command Window. The Help browser consists of two panes, the Help Navigator, which you use to find information, and the display pane, where you view the information. Tabs in the Help Navigator pane provide different ways to find documentation and demos. Drag the separator bar to adjust the width of the panes. View documentation in the display pane. Use the close box to hide the pane
Desktop Tool Help Navigator Use the Help Navigator to find information. It includes Product filter--Set the filter to show documentation only for the products Contents tab View the titles and tables of contents of documentation for your products Index tab--Find specific index entries(selected keywords)in the Math Works documentation for your products Demos tab-View and run demonstrations for your Math Works products Search tab--Look for a specific word or phrase in the documentation. To get help for a specific function, set the Search type to Function Name Favorites tab--View a list of links to documents you previously designated as favorites Display Pane After finding documentation using the Help Navigator, view it in the display pane. While viewing the documentation, you can Browse to other pages--Use the arrows at the tops and bottoms of the pages to move through the document or use the back and forward buttons in the toolbar to go to previously viewed pages Bookmark pages--Click the Add to Favorites button in the toolbar Print pages--Click the print button in the toolbar. Find a term in the page--Type a term in the Find in page field in the toolbar and click Go Other features available in the display pane are copying information, evaluating a selection, and viewing Web pages 2-9
Desktop Tools 2-9 Help Navigator Use the Help Navigator to find information. It includes • Product filter—Set the filter to show documentation only for the products you specify. • Contents tab—View the titles and tables of contents of documentation for your products. • Index tab—Find specific index entries (selected keywords) in the MathWorks documentation for your products. • Demos tab—View and run demonstrations for your MathWorks products. • Search tab—Look for a specific word or phrase in the documentation. To get help for a specific function, set the Search type to Function Name. • Favorites tab—View a list of links to documents you previously designated as favorites. Display Pane After finding documentation using the Help Navigator, view it in the display pane. While viewing the documentation, you can • Browse to other pages—Use the arrows at the tops and bottoms of the pages to move through the document, or use the back and forward buttons in the toolbar to go to previously viewed pages. • Bookmark pages—Click the Add to Favorites button in the toolbar. • Print pages—Click the print button in the toolbar. • Find a term in the page—Type a term in the Find in page field in the toolbar and click Go. Other features available in the display pane are copying information, evaluating a selection, and viewing Web pages
Development Environmen For More Help In addition to the Help browser, you can use help functions. To get help for a specific function, use doc. For example, doc format displays documentation for the format function in the Help browser. If you type help followed by the function name, a briefer form of the documentation appears in the Command Window. Other means for getting help include contacting Technical Support (http://www.mathworks.com/support)ar MATLAB users, comp. soft-sys matlab had participating Current Directory Browser reference points. Any file you want to run must either be in the current MATLAB file operations use the current directory and the search path directory or on the search path a quick way to view or change the current directory is by using the Current Directory field in the desktop toolbar as shown below Cutrent Directory: D: rmymfiles To search for, view, open, and make changes to MATLAB-related directories and files, use the MATLAB Current Directory browser. Alternatively, you can use the functions dir. cd and delete 2-10
2 Development Environment 2-10 For More Help In addition to the Help browser, you can use help functions. To get help for a specific function, use doc. For example, doc format displays documentation for the format function in the Help browser. If you type help followed by the function name, a briefer form of the documentation appears in the Command Window. Other means for getting help include contacting Technical Support (http://www.mathworks.com/support) and participating in the newsgroup for MATLAB users, comp.soft-sys.matlab. Current Directory Browser MATLAB file operations use the current directory and the search path as reference points. Any file you want to run must either be in the current directory or on the search path. A quick way to view or change the current directory is by using the Current Directory field in the desktop toolbar as shown below. To search for, view, open, and make changes to MATLAB-related directories and files, use the MATLAB Current Directory browser. Alternatively, you can use the functions dir, cd, and delete