Using MATLAB (779505), страница 14
Текст из файла (страница 14)
For example, for a general topic, use the typeDocument Titles, or to go to the reference page for a function use theFunction name search type.• Scroll through the list of results. Results are grouped by product, with alabeled banner separating each group.• If the Product filter is set to All, change it to Selected to see fewer results.• Type more than one word in the Search for field. For example, type fontpreferences. The search performs a Boolean AND between the search words.In the example font preferences, it finds all pages that have both the wordfont and the word preferences, although the page may not necessarily havethe exact term “font preferences”.
At the top of the results list are anypages that contain both words in the page title.4-14Using the Help Navigator• Try the Index. For operators and special characters, you must use the Index,because Search won’t find them. Index results might return fewer but morerelevant entries because the specified term is a keyword, whereas searchresults include pages with any mention of the specified term.More Search Results and Information. To see more information about the searchresults or to get more results, try the following suggestions.• Search for variants of the term or other terms on the displayed page usingthe Find in page field.• If the Product filter is set to Selected, change it to All to see more results.• Make the Help Navigator pane wider so you can see the second column,which displays the documentation section that the result appears in.• To get more search results, try variations of the search word(s) since thesearch looks for an exact match.
For example, search for preferences. If youdon’t find what you want, try preference. If you are searching forinformation about an option, try including the - before the option, forexample, save -append.Bookmarking Favorite PagesClick the Favorites tab in the Help Navigator to view a list of documents youpreviously designated as favorites. From the list of favorites you can:• Select an entry – That document appears in the display pane.• Remove an entry – Right-click the item in the favorites list and selectRemove from the context menu, or press the Delete key.• Rename an entry – Right-click the item in the favorites list and selectRename from the context menu.
Type over the existing name to replace itwith a new name.Adding FavoritesTo designate a document page as a favorite, do one of the following:• While a page is open in the display pane, click the Add to Favorites buttonin the display pane toolbar.• In the Contents listing, right-click an item and select Add to Favorites fromthe context menu.4-154Getting Help• In the Help browser index or search results list, right-click an entry andselect Add to Favorites from the context menu.The bookmarks file is matlab_help.hst.
Type prefdir in the CommandWindow to see the location of the file. The matlab_help.hst file is loaded whenMATLAB starts, and is overwritten when you close MATLAB.4-16Viewing Documentation in the Display PaneViewing Documentation in the Display PaneAfter finding documentation with the Help Navigator, view the documentationin the display pane.
The features available to you while viewing thedocumentation are:• “Browsing to Other Pages” on page 4-18• “Bookmarking Pages” on page 4-18• “Revisiting Pages” on page 4-19• “Printing Pages” on page 4-19• “Finding Terms in Displayed Pages” on page 4-19• “Copying Information” on page 4-19• “Evaluating a Selection” on page 4-19• “Viewing the Page Source (HTML)” on page 4-20• “Viewing Web Pages” on page 4-204-174Getting HelpBrowsing to Other PagesUse the arrow buttons in the page and the toolbar to go to other pages.View the next page in the document by clicking the right arrowat the topor bottom of the page. View the previous page in the document by clicking theleft arrowat the top or bottom of the page. The arrows at the bottom of thepage are labeled with the title of the page they go to.View the page previously shown by clicking the back buttonin the displaypane toolbar. After using the back button, view the next page shown by clickingthe forward button in the display pane toolbar.
You can also go back orforward by right-clicking on the page and selecting Back or Forward from thecontext menu, or by selecting Back or Forward from the Go menu.Bookmarking PagesAdd the currently displayed page to your list of favorite documents by clickingAdd to Favorites in the display pane toolbar.4-18Viewing Documentation in the Display PaneRevisiting PagesTo display a page that you previously viewed in the current MATLAB session,select the page title from the drop-down list in the display pane toolbar.Printing PagesFor instructions to print the currently displayed page, see “Printing a Pagefrom the Help Browser” on page 4-26.Finding Terms in Displayed PagesTo find a phrase in the currently displayed page:1 In the Find in page field in the display pane toolbar, type the phrase you’relooking for.
Then press Enter or Return, or click Go. You can type a partialword, for example, preference to find all occurrences of preference andpreferences.The page scrolls to the location containing the phrase, and highlights it.2 Press Enter or Return again to find the next occurrence in that page.See “Searching Documentation” on page 4-13 for instructions to look throughall of the documentation instead of just on one page.Copying InformationTo copy information from the display pane, first select the information.
Theneither right-click and select Copy from the context menu, or select Copy fromthe Edit menu. You can then paste the information into another tool, such asthe Command Window, or into another application, such as a word processor.Evaluating a SelectionTo run code examples that appear in the documentation, select the code in thedisplay pane. Then right-click and select Evaluate Selection from the contextmenu, or select Evaluate Selection from the Go menu. The functions executein the Command Window.4-194Getting HelpViewing the Page Source (HTML)To view the HTML source for the currently displayed page, select View -> HelpView Options -> Page Source.
The HTML version of the page appears in theEditor/Debugger. You can modify or copy the HTML source. To view a modifiedpage, use the reload buttonin the display pane toolbar, or select Reloadfrom the Go menu.Viewing Web PagesYou can use the Help browser to view any Web page, although the Helpbrowser might not support all the features you are used to in your usual Webbrowser. In the display pane page title field, type the URL and press the Enterkey. For example, type www.mathworks.com. The MathWorks Web pageappears in the Help browser.4-20Preferences for the Help BrowserPreferences for the Help BrowserUsing preferences, you can specify the location of your help files, fonts used inthe Help browser, and the products whose documentation you want to includein your Help browser.To set preferences for the Help browser, select Preferences from the Filemenu.
The Preferences dialog box opens showing Help Preferences.CD-ROM drive preference is for Windows onlyPDF reader preference is for UNIX systems only.4-214Getting HelpSet the preferences and then click OK. Help browser preferences include:• “Documentation Location – Specifying the help Directory” on page 4-22• “Product Filter – Limiting the Product Documentation” on page 4-23• “PDF Reader – Specifying Its Location” on page 4-23• “General – Synchronizing the Contents Pane with the Displayed Page” onpage 4-23• “Help Fonts Preferences – Specifying Font Name, Style, and Size” onpage 4-24Documentation Location – Specifying the helpDirectoryUse the Documentation location preference to specify where the MATLABhelp directory resides for your system. The help directory contains the onlinehelp files used by the Help browser:• If you elected to install the help files when you installed MATLAB, thedocumentation location should already be set to point to the help files.
If thehelp files location changes or you want to access different help files, changethe Documentation location for Local or network directory. On Windows,use the ... button to browse your file system to select the new location.• On Windows platforms, if you did not install the help files during MATLABinstallation, the Help browser attempts to find the files on thedocumentation CD. You need to specify the Documentation location to beCD-ROM drive.
Use the ... button to browse your file system to select thedrive’s location and select the help directory, as shown in the followingexample.For UNIX platforms that do not support Java GUIs, use the docopt function tospecify the location of your help directory.4-22Preferences for the Help BrowserProduct Filter – Limiting the Product DocumentationIf you have MathWorks products in addition to MATLAB, such as Simulinkand toolboxes, you can use the Product filter to limit the productdocumentation used.In Help Preferences, under Product filter, click Select products.
The HelpProduct Filter dialog box opens. Select the products whose documentation youwant to appear in the Help Navigator. Then, to use only those products youspecified, in the Help browser set the Product filter to Selected. When youwant to use all product documentation, in the Help browser set the Productfilter to All. Note that you can also access the Help Product Filter dialog boxby clicking the Select button in the Help browser.PDF Reader – Specifying Its LocationIf you want to access the PDF versions of the documentation, the Help systemneeds to know the location of your PDF reader (Adobe Acrobat).For Windows systems, MATLAB reads the location from the registry so youcannot specify its location in the preferences.For UNIX systems, when you installed MATLAB, it looked for your system’sPDF reader.
If found, MATLAB automatically supplied the PDF readerlocation in the preferences PDF reader field. If MATLAB could not locate yourPDF reader or if you moved your PDF reader since installation, change thelocation in the PDF reader field. Use the ... button to browse your file systemto select the location.General – Synchronizing the Contents Pane with theDisplayed PageTo turn synchronization off, uncheck the item Keep contents treesynchronized with displayed document, which is in Help Preferences,General.















