MATLAB POLYSPACE 7 Installationsanleitung

Stöbern Sie online oder laden Sie Installationsanleitung nach Software MATLAB POLYSPACE 7 herunter. MATLAB POLYSPACE 7 Installation guide Benutzerhandbuch

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 618
  • Inhaltsverzeichnis
  • FEHLERBEHEBUNG
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 0
MATLAB
®
7
Desktop Tools and Development Environment
Seitenansicht 0
1 2 3 4 5 6 ... 617 618

Inhaltsverzeichnis

Seite 1

MATLAB®7Desktop Tools and Development Environment

Seite 2 - Natick, MA 01760-2098

Help for Using MATLAB4Help Browser Overview...4-3About the Help Browser...4-3Opening the HelpBrowser

Seite 3 - Revision History

2 DesktopLayout Options for Page SetupYo u can specify the following layout o ptions. A preview area shows you theeffects of your selections:• Print h

Seite 4

Other Desktop Features3 Repeat for the other element. If y ou did not select Print header onthe Layout pane, you do not need to specify theHeader font

Seite 5 - Contents

2 DesktopThe toolbar buttons and menu items in the Web Browser are similar to thosefound in the H elp browser display pane. For more information, see

Seite 6

Other Desktop FeaturesFor m ost items, the selected Web page then opens in your default systemWeb browser, for example, Netscape:• The MathWorks Web S

Seite 7

2 Desktopusers. MATLAB Digest, an electronic bulletin consisting of technical n otes,solutions, and timely announcements to the user community, is iss

Seite 8

PreferencesPreferencesIn this section...“Setting Preferences” on page 2-59“Summary of Preferences” on page 2-60“Preferences File — matlab.prf” on page

Seite 9

2 DesktopSummary of PreferencesPreference What You Can SpecifyGeneral Preferences Toolbox path caching, figure window printing, delete functionbehavio

Seite 10 - Help for Using MATLAB

PreferencesPreferences File — matlab.prfPreferences are stored in a p references file, matlab.prf.Typeprefdir in theCommand Window to see the full pat

Seite 11

2 DesktopFonts Preferences for Desktop ToolsIn this section...“Setting Desktop Fonts” on page 2-62“Desktop Code Font and Desktop Text Font” on page 2-

Seite 12

Fonts Preferences for Deskto p ToolsDesktop Code Font and Desktop Text F ontYo u s pecify separate font characteristics for tools that primarily displ

Seite 13 - Editing and Debugging M-Files

Help Fonts and Colors Preferences ... 4-39Printed Documentation... 4-42About Printed M anuals...

Seite 14

2 Desktopbrowser. M any users prefer that code display in a monospace font to providebetter alignme nt, and prefer a more narrow font style for t ext

Seite 15

Fonts Preferences for Deskto p ToolsDefaultFontSettingsDefault settings are listed in the following table. Note that Lucida Consoleapproximates thefix

Seite 16 - Tuning and Managing M-Files

2 DesktopFont TypeDefault Characteristics andSample Tools Using Font Type by DefaultDesktop code font Monospaced, Plain, 10 point • Command History• C

Seite 17

Fonts Preferences for Deskto p ToolsCustom Fonts PreferencesIf you do not want to use the current settings for “Desktop Code Font andDesktop Text Font

Seite 18 - Source Control Interface

2 DesktopTo change the font characteristics the selected tool uses, select a different radiobutton. For Custom, you then specify the font characterist

Seite 19

Fonts Preferences for Deskto p ToolsTool Font Type Font CharacteristicsWorkspace Desktop text SansSerif, Plain, 10 pointArray Editor Desktop text Sans

Seite 20

2 DesktopColors Preferences for Desktop ToolsIn this section...“Setting Colors Used in Deskto p Too ls” on page 2-70“Desktop To ol Colors” on page 2-7

Seite 21 - Startup and Shutdown

Colors Preferences for Desktop ToolsTo set colors for text and the background,clear the Use system colors check boxand then select colors from the pal

Seite 22 - 1 Startup and Shutdown

2 DesktopDesktop Tool ColorsUse Desktop toolcolors to change the color of the tex t and background inthe desktop tools. ThecolorsalsoapplytotheImportW

Seite 23 - .mat extension

Colors Preferences for Desktop ToolsGray Background ColorFor some UNIX platforms, there is a g ray background color for desktop tools,such as the Edit

Seite 24

Creating Plots from the Workspace Browser ... 5-9Opening Variables and Objects for Viewing and Editing.. 5-9Preferences for the Workspace Bro

Seite 25

2 DesktopThe defau lt colors are listed here:• Keywords — Flow c ontrol functions, such asfor and if,aswellasthecontinuation ellipsis (...), are color

Seite 26

Colors Preferences for Desktop ToolsOther ColorsSpecify the colorforHyperlinks, which applies to links in the CommandWindowandHelpbrowser Index pane.

Seite 27 - .fig, .m, .mat,and.mdl

2 DesktopGeneral Preferences for MATLABIn this section...“Setting General Preferences for MATLAB” on page 2-76“Default Behavior of the Delete F unctio

Seite 28 - Star tup Directory for MATLAB

General P references for MATLABThesepreferences apply to all relevant tools in MATLAB.• Toolbox path caching p reference — see “Toolbox Path Caching i

Seite 29 - For Windows Platforms Only

2 Desktop• “MAT-Files Preferences” on page 2-79• “C onfirmation Dialogs Preferences” on page 2-81• C h apter 9, “Source Control Interface”• “Multithre

Seite 30

General P references for MATLABMAT-Files PreferencesThe MAT-file save format sets the default version compatibility optionMATLAB uses when saving MAT-

Seite 31 - For All P latforms

2 Desktopallow it, w hich is the primary purpose of this option. U sing th is option isequivalent to runningsave -v7.3. This format of the resulting M

Seite 32 - $user/mytools

General P references for MATLABmight b e more convenient than changing the preference. For example, usesave with the-v6 optio n to en su re com p atib

Seite 33 - Startup Options

2 DesktopWhen the con firmation dialog box does appear, it includes a Do not showthis prompt again check box. If y ou se lect the check bo x in the di

Seite 34

General P references for MATLABConfirmation DialogsCheck Box ItemAbout the ConfirmationDialog Box For More InformationPrompt when editing filesthat do

Seite 35

Accessing Source C ontrol Features ... 5-54Preferences for the Current Directory Browser... 5-54Editing and Debugging M-Files6Be

Seite 36

2 DesktopMultithreading PreferencesIf you run MATLAB on a multiple-CPU system (multiproce ssor o r m ultico re),you can use multithreaded computation,

Seite 37 - UsingtheCacheFileUponStartup

AccessibilityAccessibilityIn this section...“Software Accessibility Support” on p age 2-85“Documentation Accessibility Support” on page 2-86“Assistive

Seite 38

2 DesktopExcept for scopes and real-time data acquisition, the M athWorks s oftwaredoes not use flashing or blinking text, objects, or other elements

Seite 39

AccessibilityThe following product documentation has been modified (as described b elow )to enhance its accessibility f or people using a screen reade

Seite 40

2 Desktop• JAWS 5.0, 6.0, and 7.0 for Windows (screen reader) from Freedom Scientific• Built-in accessibility aids from Microsoft, including the Magni

Seite 41 - Other Startup Topics

AccessibilitySetting Up JAWSMake sure that JAWS is installed on your machine. If it is, there is probably ashortcut to it on the Windows desktop.Setti

Seite 42

2 DesktopBe sure to include that semicolon betw een the end of this directory nameand the text that was already there.7 Click OK three t imes.8 If JAW

Seite 43 - Quitting MATLAB

Accessibility1 Start JAWS.2 Start M ATLAB.JAWS should start talking to you as you select menu items and work with theMATLAB user interface in other wa

Seite 44

2 Desktoppress the arrow keys to move to the command output and use JAWSkeystrokes to read the output.With this preference set, you cannot use arrow k

Seite 45 - -r option or run in deploye d

3Running Functions —Command Window andHistoryIf you have an active Internet connection, you can watch the Working in theDevelopment E nvironment video

Seite 46

Code Folding—Expanding and Collapsing M-FileConstructs... 6-31Split Screen Display... 6-

Seite 47

3 Running Functions — Command Window and HistoryPreferences for the Co mmandWindow (p. 3-40)Specify options for text, display, tabsize, accessibility,

Seite 48

The Command WindowThe Command WindowIn this section...“About the Command Window” on page 3-3“Opening the Command Window” on page 3-3“Command Window Pr

Seite 49 - Over view of th e Desktop

3 Running Functions — Command Window and HistoryCommand Window PromptThe Command Window prompt,>>, is where you enter statements. Forexample, yo

Seite 50

The Command WindowGetting StartedMessage Bar in the CommandWindowJust below the Command Window menu bar is a message bar that includeslinks to a video

Seite 51 - Summary of Desktop Tools

3 Running Functions — Command Window and HistoryHelp for Functions” on page 4-49—for more general information on help, seeChapter 4, “Help for Using M

Seite 52 - Arranging the Desktop

Running Functions and Programs, and Entering VariablesRunning Functions and Programs, and Entering VariablesIn this section...“Running Statements at t

Seite 53

3 Running Functions — Command Window and HistoryDefinition of a Statement. All of the in f ormation yo u type before pressingEnter or Return is known

Seite 54

Running Functions and Programs, and Entering Variablesthe MATLAB current directory or on the MATLAB search path — for details,see “Search Path” on pag

Seite 55

3 Running Functions — Command Window and History!vi yearlystats.minvokes the vi editor for a file na med yearlystats.m. After the externalprogram comp

Seite 56

Running Functions and Programs, and Entering VariablesUNIX System Path and Running UNIX Programs from MATLABTo run a UNIX program from MATLAB if its d

Seite 57

Using Configurations — Running M-Files with InputArguments in the Editor/Debugger... 6-67Create and Run a Configuration for an M-file...

Seite 58

3 Running Functions — Command Window and History3 Save the file.Thematlab file will modify the PATH environment variable, and then startMATLAB.Evaluat

Seite 59 - Saving Desktop Layouts

Running Functions and Programs, and Entering VariablesDisplaying Hyperlinks in the Command WindowYou can use MATLABcommandstocreatehyperlinksintheComm

Seite 60

3 Running Functions — Command Window and HistoryRunning MATLAB Functions by HyperlinkUse matlab: to run a specified statement w hen you click a hyperl

Seite 61

Controlling InputControlling InputIn this section...“Case and Space Sensitivity” on page 3-15“Syntax Highlightin g” on page 3-16“Matching Delimiters (

Seite 62

3 Running Functions — Command Window and HistoryNote that if you use the help function, function names are shown in alluppercase, for example,PLOT, so

Seite 63

Controlling InputMatching Delimiters (Parentheses)Yo u can set a preference for MATLAB to notify you about matched a ndunmatched delimiters. For examp

Seite 64 - Default desktop layout

3 Running Functions — Command Window and HistoryEnter Multiple Lines Without Running ThemTo enter multiple lines before running any of them, use Shift

Seite 65

Controlling Inputheaders =Author Last Name, Author First Name, Author Middle InitialMATLAB produces an error when you do not complete the string, a s

Seite 66

3 Running Functions — Command Window and Historyagaintodisplaythenextmostrecentlinethatbeganwithplo,andsoon.Then press Enter or Return to run the line

Seite 67

Controlling Input• “Tab Completion for Properties” on page 3-25Basic Example — Unique CompletionThis example illustrates a basic use for tab completio

Seite 68

Tuning and Managing M-Files7Directory Reports in Current Directory Browser...7-2Accessing and Using D ire ctory Reports...7-2TODO/FIXME

Seite 69

3 Running Functions — Command Window and HistoryThe resulting list of possible completions includes the variable name youcreated,costs_march, but also

Seite 70

Controlling InputNarrowing Completions Shown . You can narrow the list of completionsshownbytypingacharacterandthenpressingTab if the Command Windowpr

Seite 71

3 Running Functions — Command Window and HistoryContinue narrowing the list in the same way. For the above example, type oand press Tab to further nar

Seite 72

Controlling InputFo r example, t ypemystruct.nand press Tab, which completes the entry mystruct.name,wheremystructcontains no other fields that begin

Seite 73

3 Running Functions — Command Window and Historyset(f, 'paperUnits', 'centimeters'because centimeters istheonlypossiblecompletion.

Seite 74

Controlling InputKey orMouseAction forWindowsPreferenceControlKey forMATLABstandard(Emacs)PreferenceKey or MouseAction forMacintoshPreference Operatio

Seite 75 - The document bar is hidden

3 Running Functions — Command Window and HistoryKey orMouseAction forWindowsPreferenceControlKey forMATLABstandard(Emacs)PreferenceKey or MouseAction

Seite 76

Controlling InputKey orMouseAction forWindowsPreferenceControlKey forMATLABstandard(Emacs)PreferenceKey or MouseAction forMacintoshPreference Operatio

Seite 77

3 Running Functions — Command Window and HistoryControlling OutputIn this section...“Echoing Execution” on page 3-30“Suppressing Output” on page 3-30“

Seite 78

Controlling Output--more--indicating there is more output to display. Press one of the following keys.KeyActionEnter or ReturnTo advance to the next l

Seite 79 - Creating Shortcuts

Text Markup for Indented Text, Lists, and Graphics ... 8-14Text Markup for HTML, LaTeX, and TeX Equation OutputTypes...

Seite 80

3 Running Functions — Command Window and History1.3333e+000 1.2345e-006format +++A complete list and description of available formats is in the refere

Seite 81 - Shortcuts Toolbar

Controlling OutputPrinting Command Window ContentsTo print the complete contents of the Command Window, select File > Print.To print only a selecti

Seite 82

3 Running Functions — Command Window and HistorySearching in the Command WindowIn this section...“Introduction” on page 3-34“Find Dialog Box” on page

Seite 83 - Shortcut Labels on Toolbar

Searching in the Command WindowMATLAB beeps when a search for Find Next reaches the end of theCommand Window, or when a search for Find Previous reach

Seite 84

3 Running Functions — Command Window and History4 In the Inc Search field, type the text yo u want to find. For example, lookforBoston.As you type the

Seite 85 - Click Close

Searching in the Command WindowWhen you type the next letter, the first occurrence of the text becomeshighlighted. In the exam ple, w hen y ou add the

Seite 86 - Keyboard Shor tcuts

3 Running Functions — Command Window and History• When the text is not found, Failing appears in the incremental searchfield. Modify the search term i

Seite 87 - Keyboard Shortcuts

Searching in the Command WindowIn the example, enter bO in the Inc Search field and incremental search doesnot fin d any matchin g text.3-39

Seite 88

3 Running Functions — Command Window and HistoryPreferences for the Command WindowIn this section...“Text, Display, Accessibility, and Ta b S ize P re

Seite 89

Preferences for the C ommand WindowText DisplaySpecify the format, that is, how output appears in the Command Window.Numeric format. Specify the outpu

Seite 90

Modifying Styles in the M-Book Template ... 8-47Choosing Loose or Compact Format fo r Noteboo k... 8-48Controlling Numeric Output Format

Seite 91

3 Running Functions — Command Window and HistoryNumeric display. Specify spacing of output in the Command Window. Tosuppress b lank lines, usecompact.

Seite 92

Preferences for the C ommand WindowThis preference setting does not impact the number of lines you can recallwhen you use the up arrow key in the Comm

Seite 93 - Toolbars

3 Running Functions — Command Window and History• “Command Window Key Bindings” on page 3-44• “E ditor/Debugger Key Bindings” on page 3-45• “Tab Compl

Seite 94

Preferences for the C ommand WindowMATL AB standa rd (Emacs). Allows you to use the control keys listed in“Keyboard Shortcuts in the Command Wind ow”

Seite 95 - Sizing, Arra

3 Running Functions — Command Window and HistoryEnable in Editor/Debugger. Selectthecheckboxtousetabcompletionwhen typing functions in the Editor/D eb

Seite 96

Preferences for the C ommand WindowIf the matching delimiter is not visible on the screen, a pop-up w indow appearsand shows the line containing the m

Seite 97 - ,andMove

3 Running Functions — Command Window and HistoryMatch on arrow key. Select the check box if you want to be alerted tomatches and mismatches in pairs o

Seite 98

Command History WindowCommand History WindowIn this section...“Overview” on page 3-49“Viewing Statements in the Command History Window” on page 3-50“U

Seite 99 - Specifying Page Setup Options

3 Running Functions — Command Window and HistoryMATLAB provides other options for viewing a history of statements. Seealso the following sections:• “R

Seite 100 - 2 Desktop

Command History WindowUsing Statements from the Comm and HistoryWindowYo u can select entries in the Command History window and then perform thefollow

Seite 101 - Web Browser

Undoing the Checkout ... 9-13Additional Source Control A ctions on Windows... 9-14Getting the Late st Version of Files fo

Seite 102

3 Running Functions — Command Window and HistorySearching in theCommand History WindowThere are two types of search in the Command History window:• “F

Seite 103 - Other Desktop Features

Command History Window2 Type the first letters of the entry you want to find. For example, type my.The Co mmand History window searches backwards and

Seite 104

3 Running Functions — Command Window and HistoryFinding M ultiple Occurrences of the Entry. You can use the up and downarrow keys to search for the ne

Seite 105 - Preferences

Command History WindowTo highlight all instances of the entry, press Ctrl+A. In the example below, allinstances of entries beginning withmy are highli

Seite 106

3 Running Functions — Command Window and HistoryFinding TextSelect Find from the Edit menu to search for specified text using the Finddialog box. Comp

Seite 107 - Preferences File — matlab.prf

Command History WindowMATLAB beeps when a search for Find Next reaches the end of theCommand History window, or when a search for Find Previous reache

Seite 108

3 Running Functions — Command Window and HistoryTo delete entries in the Command H istory window, first select the entries todelete, using one of thes

Seite 109

Preferences for Comm and HistoryPreferences for Command Histor yIn this section...“Introduction” on page 3-59“Settings” on page 3-59“Saving” on page 3

Seite 110

3 Running Functions — Command Window and Historyone entry for magic(5). If you then run magic(10), the command history filesaves both entries,magic(5)

Seite 111 - DefaultFontSettings

4Help for Using MATLABThe primary means for getting help is the Help browser, w hich providesdocumentation for all your installed products. O ther for

Seite 112

How to Contact The MathWorkswww.mathworks.comWebcomp.soft-sys.matlab Newsgroupwww.mathworks.com/contact_TS.html Technical [email protected]

Seite 113 - Custom Fonts Preferences

Checking Files Out of the Source Control System onUNIX... 9-33Checking Out One or More Files U sing the Curren

Seite 114

4 Help for Using MAT LABHelp Functions (p. 4-44)Use functions to get information,such as help and doc.Getting Pop-Up Help for Functions(p. 4-49)Getpop

Seite 115 - See Also

Help Browser OverviewHelp Browser OverviewIn this section...“About the Help Browser” on page 4-3“Opening the Help Browser” on page 4-3“Resizing the He

Seite 116

4 Help for Using MAT LABTabs in the Help Navigator pane providedifferent ways to find information.Use the close boxto hide the pane.View documentation

Seite 117

Help Browser OverviewResizing the HelpBrowserTo adjust the relative width of the t wo panes, drag the separator bar b etw eenthem. You can also change

Seite 118

4 Help for Using MAT LAB4-6

Seite 119 - Syntax Highlighting Colors

Help Browser OverviewTypes of DocumentationThe H elp browser and help f unctions provideaccesstothefollowingtypesof information for all ins talled Mat

Seite 120

4 Help for Using MAT LABIconType ofDocumentation Description and When to UsePrintableDocumentationMost products provide access to the onlinedocumentat

Seite 121 - Other Colors

Help Browser Overview• A ccess documentation via your system Web brows er, such as when you arenot running MATLAB or if you prefer your system Web bro

Seite 122

4 Help for Using MAT LABFinding Info rma tion with the Help BrowserIn this section...“Help Navigator” on page 4-10“Contents in the Help Brow ser” on p

Seite 123

Finding Information with the Help BrowserProduct RoadmapWhen you select a product in the Contents pane (any entry with a bookicon), such as MATLAB or

Seite 124

1Startup and ShutdownThis set of topics includes options for customizing the startup and shutdown.Starting MATLAB on WindowsPlatforms (p. 1-2)Ways to

Seite 125 - MAT-Files Preferences

4 Help for Using MAT LAB• Function and block references pages• An inde x of major ex amples in the documentation• The PDF version of the docume nta t

Seite 126

Finding Information with the Help Browseronly applies to the major headings in a document. For pages that begin withlower level headings, the Contents

Seite 127

4 Help for Using MAT LAB1 Click the Ind ex tab.2 Type aword or words in the Enter index term field. As you type, theIndex pane displays matching entri

Seite 128

Finding Information with the Help Browsersensitive. If there is not a matching entry, it displays the page for the letterthat your entry begins with.T

Seite 129

4 Help for Using MAT LAB• For d ifferent but related results, try using the Search for field—fo rinstructions, see “Search Documentation and Demos wit

Seite 130

Finding Information with the Help Browser1 To limit (or extend) the products whose documentation and d emos aresearched, set the product filter.4-17

Seite 131 - Accessibility

4 Help for Using MAT LAB2 In the Search for field, type the word or words you want to find and clickGo (or p ress Enter or Return). Some techniques fo

Seite 132

Finding Information with the Help Browserthat contain all sea r ch words, w ith pages containin g a single instance ofeach search word appearing last.

Seite 133 - Assistive Technologies

4 Help for Using MAT LABFunction Alternative. From the C ommand Window, use docsearch to openthe Help browser to the Search pane and search for the sp

Seite 134

Finding Information with the Help BrowserFor details, see the docsearch reference page.Wildcards in Search (Partial Word)Yo u can use the wildcard cha

Seite 135 - Setting Up JAWS

1 Startup and ShutdownStar ting MATLAB on Windows PlatformsIn this section...“Starting MATLAB from the Windows Desktop or a DOS Window” onpage 1-2“Sta

Seite 136

4 Help for Using MAT LABExample Using Boolean Operators in Search. Typeplot* tools NOT time seriesto find all pages that contain the words plot or its

Seite 137 - Troubleshooting

Finding Information with the Help BrowserProblem Tr y These SuggestionsPages are not about searchword, but just mention itTry the Index pane to see mo

Seite 138 - - Next history: Ctrl+n

4 Help for Using MAT LABProblem Tr y These SuggestionsNo results but you knowthe word should be thereTry variations of the search word by using a wild

Seite 139 - Command Window and

Finding Information with the Help BrowserA favorite is implemented as a M ATLAB shortcut, so the dialog box isthe same as for the Shortcut Editor.Favo

Seite 140

4 Help for Using MAT LABViewing Documentation in the Help BrowserIn this section...“About the Display Pane” on page 4-26“BrowsetoOtherPages”onpage4-27

Seite 141 - The Command Window

Viewing Documentation in the Help BrowserBrowse to Other PagesUsethearrowbuttonsinthepageandinthetoolbartogotootherpages.4-27

Seite 142 - Command W

4 Help for Using MAT LABView the next page in a document by clicking the Next page button at thetop or bottom of the page. View the previous page in a

Seite 143 - Message Bar in the Command

Viewing Documentation in the Help BrowserYo u can change the selection in the Look in field to search for the specifiedtext in other MATLAB desktop to

Seite 144

4 Help for Using MAT LABthem into other tools like the E ditor/D ebugger or Command Window, or intoother applications.View the Page LocationTo vi ew t

Seite 145

Demos in the Help BrowserDemos in the Help BrowserIn this section...“About Demos” on page 4-31“Using Demos” on page 4-32“Adding Your Own Demos” on pag

Seite 146 - Running M -Files

Starting MATLAB on Windows Platformsassociate with MATLAB. For example, if you accepted the default options,double-clicking an M-file in Windows Explo

Seite 147 - Running External Programs

4 Help for Using MAT LABUsing DemosTo access demos for the products you have installed,1 Click the Demos tab in the Help Navigator.You can also access

Seite 148

Demos in the Help Browser4 You can then view and run the demo, w ith specific o ptions depending onthe type of demo:4-33

Seite 149 - 3 In M ATLAB, type

4 Help for Using MAT LAB• For M-file demos, click the Open filename in the Editor link atthe top left. This opens the M-file in the Editor/Debugger. F

Seite 150 - Function Alternative

Demos in the Help BrowserSearching for DemosYo u can use the Help browser search feature to find demos. Search find wordsin comments or code for M-fil

Seite 151 - Displaying Hype

4 Help for Using MAT LABFunction AlternativeTo open the Demos pane in the Help browser, type demo in the CommandWindow. You can go directly to the dem

Seite 152

Preferences for the Help BrowserPreferences for the Help BrowserIn this section...“Product Filter” on page 4-37“PDF Reader — Specifying Its Location”

Seite 153 - Controlling Input

4 Help for Using MAT LABExample Using the Product FilterIf you want to perform a search and have many products installed but knowthe information you a

Seite 154 - Syntax Highlighting

Preferences for the Help BrowserHelp Fonts and Colors PreferencesSet fonts and colors f or the Help browserthesamewayyouwouldforotherdesktop tools. Th

Seite 155

4 Help for Using MAT LAB4-40

Seite 156

Preferences for the Help BrowserUse the same method as you would to specify fonts for any des ktop tool — formore information, see “Fonts Preferences

Seite 157 - Recalling Previous Lines

1 Startup and ShutdownAfter associating a file type with MATLAB, you can open other applicationsusing that file type via the context menu. For example

Seite 158

4 Help for Using MAT LABPrinted DocumentationIn this section...“About Printed Manuals” on page 4-42“Printing a Page from the Help Browser” on page 4-4

Seite 159 - Multiple Possible Completions

Printed DocumentationNote The Help b row ser accesses PDF documentation from the M athWorksWeb site. Therefore, you need Internet access to view or pr

Seite 160

4 Help for Using MAT LABHelp FunctionsIn this section...“About Help Functions” on page 4-44“Summary Table of Help Functions” on page 4-44“View Functio

Seite 161

Help FunctionsFunction DescriptionhelpbrowserOpens the Help browser, the MATLAB interface for accessingdocumentation.helpdeskOpens the Help browser. I

Seite 162 - Tab Completion for Structures

4 Help for Using MAT LABdatabase/setwhich is the set functionforDatabaseToolbox. Clickalinktogotothatset reference page.To directly get the reference

Seite 163 - Tab Completion for Properties

Help FunctionsNote M-file help displayed in the Command Window uses all uppercasecharacters for the function and variable n ames to distinguish them f

Seite 164

4 Help for Using MAT LABhelp database/setCreating M-File Help for Your Own M-FilesYo u can create M-file help for your own M-files and access it using

Seite 165

Getting Pop-Up Help for FunctionsGetting Pop-Up Help for FunctionsMATLAB provides pop-up help for MATLAB functions from both theEditor/Debugger and th

Seite 166

4 Help for Using MAT LAB4-50

Seite 167

Other Forms of HelpOther Forms of HelpIn this section...“Documentation for Other Products” on page 4-51“Product-Specific Help Features” on page 4 -51“

Seite 168 - Controlling Output

Starting MATLAB on Windows Platformsusing the MATLAB tool associated with that file type. For example, even ifyou associate.mat files with Microsoft A

Seite 169 - Examples of Formats

4 Help for Using MAT LABwho downloads them . To view the files available to download, go tothe MATLAB Central File Exchange page on the MathWorks Web

Seite 170 - Clearing the Command Window

Other Forms of HelpFirst-time users to the newsgroup shouldreadthenewsgroupFAQ,linkedto from the MATLAB Central page. It is a good practice to try to

Seite 171 - Keeping a Sessi

4 Help for Using MAT LABProvide FeedbackTo report problems or provide comments or suggestions to The M athWorksabout the documentation, help features,

Seite 172 - Find Dialog Box

5Workspace, Search Path,and File OperationsIf you have a n active Internet connection, you can watch the WorkspaceBrowser video demo, the Array Editor

Seite 173 - Incremental Search

5 Workspace, Search Path, and File OperationsMATLAB WorkspaceIn this section...“About the MATLAB Workspace” on page 5-2“Opening the Workspace Browser”

Seite 174

MATLAB WorkspaceOpening the Workspace BrowserTo open the Workspace browser, select Workspace from the Desktop menuin the MATLAB desktop, or typeworksp

Seite 175 - 5 To find

5 Workspace, Search Path, and File Operations• You can select the column on which to sort as well as reverse the sort orderof any column. Click a colu

Seite 176

MATLAB WorkspaceYour variables are:ACMRSc>> whosName Size Bytes Class AttributesA 4x4 128 doubleC 1x3 348 cellM 4x4x24 3072 doubleR 3x4x5 480 do

Seite 177

5 Workspace, Search Path, and File OperationsTheworkspacevariablesaresavedundertheMAT-filenameyouspecified.Yo u can also save the workspace variables

Seite 178

MATLAB Workspaceinformation — see “Data Import and Export” in the MATLAB Programmingdocumentation.Loading a Saved Wo rkspace and Impo rting DataTo loa

Seite 179

1 Startup and ShutdownAssume that when you double-click a .mat file in Windows Explorer, it opensin Microsoft Access, but you want the file to open in

Seite 180 - 1,000 to 25,000.Thisisthe

5 Workspace, Search Path, and File OperationsFunction Alternative. Use whos with the -file option.Changing and Copying Variable NamesTo rename a varia

Seite 181 - Keyboard Preferences

MATLAB WorkspaceViewing Base andFunction Workspaces Using theStackWhen you run M-files, MATLAB a ssigns each function its own w orkspace,called the fu

Seite 182 - Command Window Key Bindings

5 Workspace, Search Path, and File OperationsSome toolboxes allow you to double-click an object in the Workspace brow se rto open a viewer or other to

Seite 183 - Tab Completion

MATLAB WorkspaceSpecify Maximum Array Size on Which to Compute StatisticsIf you show statistical columns in the Wo rkspace browser, and if you workwit

Seite 184 - Delimiter Matching

5 Workspace, Search Path, and File OperationsViewing and Editing Workspace Variables with the ArrayEditorIn this section...“About the Array Editor” on

Seite 185

Viewing and Editing Workspace Variables with the Array Editor1 In the Workspace browser, select the variable you want to open. Shift+clickor Ctrl+clic

Seite 186 - None —Thereisnoalert

5 Workspace, Search Path, and File OperationsNote The maximum array size that you can open in the Array Editor is notlimited by MATLAB, but is based o

Seite 187 - Command History Window

Viewing and Editing Workspace Variables with the Array EditorSimilarly, double-click a cell in a cell array to view and edit its contents. Thefollowin

Seite 188

5 Workspace, Search Path, and File OperationsNavigating and Editing Shortcut Keys fo r the ArrayEditorUse the following shortcut keys (sometime s call

Seite 189

Viewing and Editing Workspace Variables with the Array EditorKey ResultTab Move rightWithin a selection, also moves from the lastcolumn to the first c

Seite 190 - Searching in the

Starting MATLAB on Macintosh PlatformsStar ting MATLAB on Macintosh PlatformsIn this section...“Starting MATLAB from the Macintosh Desktop” on page 1-

Seite 191

5 Workspace, Search Path, and File Operationsthe Preferences dialog. For more information, see “Prefere nces for the ArrayEditor” on page 5-22.If you

Seite 192

Viewing and Editing Workspace Variables with the Array EditorExample Copying and Pasting Array ElementsIn this example, two elements are copied but th

Seite 193 - To highli

5 Workspace, Search Path, and File OperationsExample Cutting and Pasting Array ElementsIn this example, the area selected for pasting requires the Arr

Seite 194 - Finding Text

Viewing and Editing Workspace Variables with the Array EditorInsert and DeleteintheArrayEditorYo u can insert and delete elements, rows, and columns i

Seite 195

5 Workspace, Search Path, and File OperationsTo create a new variable, select a cell, row, or column in the Array Editor,right-click, and from the con

Seite 196

Search PathSearch PathIn this section...“About the Search Path” on page 5-23“How the Search Path Determines W hich Function to U se” on page 5-24“How

Seite 197 - Settings

5 Workspace, Search Path, and File Operationsaction so that MATLAB runs the file you want—for more information, see“How the Search Path Determines Whi

Seite 198

Search Path• If you are not sure of the function MATLAB is using, run which for aspecified function and M ATLAB returns the full path to the function.

Seite 199

5 Workspace, Search Path, and File OperationsViewing and Setting the Search PathUse the Set Path dialog box to view and modify the MATLAB se arch path

Seite 200 - 4 Help for Using MAT LAB

Search Path• “Viewing the Search Path” on page 5-27• “A dding Directories to the Search Path” on page 5-27• “M oving Directories Within the Search Pat

Seite 201 - Help Browser Overview

1 Startup and ShutdownStar tup Directory for MATLABIn this section...“What Is the Startup Directory?” on page 1-8“Startup Directory (Folder) on Window

Seite 202

5 Workspace, Search Path, and File OperationsThe Browse for Folder dialog box opens.2 In the Browse for Folder dialog box, use the view of your file s

Seite 203 - Resizing the Hel

Search Path2 Click one of the Move buttons, such as Move to Top. The order of thedirectories changes.3 To use the newly modified search path in future

Seite 204

5 Workspace, Search Path, and File OperationsRestoring the Default Search PathTo restore the default search path, click Default in the Set Path dialog

Seite 205 - Types of Documentation

Search PathCaution Against Saving Files in matlabroot/toolbox. Save any M-filesyou create and any MathWorks supplied M-files that you edit in a direct

Seite 206

5 Workspace, Search Path, and File OperationsBy maintaining an un altered pathdef.m in matlabroot/toolbox/local,you avoid inadvertently removin g dire

Seite 207 - DocumentationinOtherLanguages

Search PathRecovering from Problems with the Search PathIf you get unexpected results that are related to the search path, you can tryto correct the p

Seite 208

5 Workspace, Search Path, and File Operationsa Runrestoredefaultpath; matlabrcThis might run for a few minutes. It sets the search path to include onl

Seite 209 - Product Roadmap

File Management OperationsFile Management OperationsIn this section...“About MATLAB File Operations” on page 5-35“Current D irectory Field” on page 5-

Seite 210

5 Workspace, Search Path, and File OperationsTo change the current directory from thisfield,dooneofthefollowing:• In the field, type the path for the

Seite 211 - Index for the Help B rowser

File Management OperationsThe main tasks you perform with the Current Directory browser are• “Viewing and M aking Changes to Directories” on page 5-38

Seite 212

Startup Director y for MATLABStartup Directory on UNIX PlatformsOn UNIX platforms, the default startup directory is the directory youareinonyourUNIXfi

Seite 213 - Tips for Using the Index

5 Workspace, Search Path, and File OperationsViewing and Making Changes to DirectoriesYou can change the current directory, view its contents, add dir

Seite 214

File Management Operations1 Set C:\Climate as your current directory.2 Assume that you want to search the Current Directory for the file n amedstandar

Seite 215

5 Workspace, Search Path, and File Operations4 Since the standalone directory is not your intended search target, continuetyping additional letters th

Seite 216

File Management OperationsChanging the DisplayTypes of Files. To specify the types of files shown in the Current Directorybrowser, use the View menu.

Seite 217

5 Workspace, Search Path, and File OperationsContents. In the Current Directory browser, select a file and then viewinformation about the file in the

Seite 218

File Management OperationsAdding Directories to the MATLAB Search PathFrom the Current Directory browser, you can add directories to t he M ATLABsearc

Seite 219 - Boolean Operators in Search

5 Workspace, Search Path, and File Operationsgenerates a warning and does not delete my file.m. Instead use the functionform of the syntax:delete(&apo

Seite 220

File Management Operations3 Press the Enter or Return key.The directory is added.Function Alternative. To create a directory, use themkdir function. F

Seite 221 - Get More Results

5 Workspace, Search Path, and File Operationsthe Recycle Bin, select Properties from the context menu, and then, underthe Global tab, select the check

Seite 222

File Management OperationsOpening and Running Files• “Opening Files” on page 5-47• “Running M-Files” on page 5-49Opening FilesYo u can open a file fro

Seite 223 - Organize Favorites

Revision HistoryJune 2004 First printing New for MATLAB 7.0 (Release 14). Formerly part of UsingMATLAB.October 2004 Online only Revised for MATLAB 7.0

Seite 224

1 Startup and ShutdownIn the Start in field, enter the full path to the directory in which you want MATLABto the start. For example, I:\my_matlab_file

Seite 225 - Browse to Other Pages

5 Workspace, Search Path, and File OperationsYou can also import data from a file. Select the file, ri ght-click, and selectImport Data from the conte

Seite 226

File Management OperationsFile Type Extension ActionVariablenoneOpens the numeric or string array namein the Array Editor; open calls openvar.Othercus

Seite 227 - View the Page Source (HTML)

5 Workspace, Search Path, and File OperationsTosearchforfilesinoneormoredirectories, or to search for specifie d text infiles, fo llow these instructi

Seite 228

File Management Operations• To search for text within files, type the text in the Find files containingtext field. For example, search forplot. A lter

Seite 229 - Demos in the Help Browser

5 Workspace, Search Path, and File Operations7 Click a colum n heading to sort the results based on that column. Clickthe column heading again to reve

Seite 230

File Management Operations4 Find Files will not look in any file type in the list whose State check box isselected. It will look in any file type in t

Seite 231

5 Workspace, Search Path, and File Operations5 Click OK to accept the changes and close the Ed it Skipped FileExtensions dialog box.6 When you click F

Seite 232

File Management OperationsHistoryThe drop-down list in the current directory field shows the history of currentdirectories, that is, the most recently

Seite 233 - Searching for Demos

5 Workspace, Search Path, and File Operations• File type• Fi le size• Last modified date• M -file descriptions (the first comm ent line in the M-file,

Seite 234

6Editing and DebuggingM-FilesMATLAB provides powerful tools for creating, editing, and debugging files,as deta iled here. For information about the MA

Seite 235 - Product Filter

Startup Director y for MATLABYou can make multiple shortcuts to start MATLAB, each with its own startupdirectory, and with each startup directoryhavin

Seite 236

6 Editing and Debugging M-FilesNavigating in an M-File (p. 6-42)Go to a line number, function,bookmark , back and forward, an dopen a selection.Findin

Seite 237

BeginwithExistingCodeBeginwithExistingCodeIn this section...“Create M-Files from Command Window and History” on page 6-3“Use Existing M-Files and Exam

Seite 238

6 Editing and Debugging M-FilesDemos and ExamplesMATLAB and its toolboxes include demonstrationprograms.Youcanviewthecode in the demos and copy it for

Seite 239 - Comic Sans

Ways to Edit, Evaluate, a nd Debug M-FilesWays to Edit, Evaluate, and D ebug M-FilesThere are several methods for creating, editing, evaluating, and d

Seite 240 - Printed Documentation

6 Editing and Debugging M-FilesUse preferences for the Editor/Debugger to set up the editing and debuggingenvironment to best m eet your needs.For inf

Seite 241

Starting, Customizing, and C losing the Editor/DebuggerStar ting, Customizing, and Closing the Editor/DebuggerIn this section...“Starting the Editor/D

Seite 242 - Help Functions

6 Editing and Debugging M-FilesCreating a New File in the E ditor/DebuggerTocreateanewtextfileintheEditor/Debugger, either click the New M-filebuttono

Seite 243

Starting, Customizing, and C losing the Editor/DebuggerFunction AlternativeType edit in the Command Window to create a new file in theEditor/Debugger.

Seite 244

6 Editing and Debugging M-FilesTo make a document in the Editor/Debugger become the current document,click it, or select it from the Window menu or do

Seite 245

Starting, Customizing, and C losing the Editor/DebuggerFile > Preferences > Editor/Debugger and in the Most recently usedfile list,specifytheNum

Seite 246

1 Startup and ShutdownStar tup OptionsIn this section...“About Startup Options” on p age 1-12“Using the Startup File for MATLAB, startup.m” on page 1-

Seite 247

6 Editing and Debugging M-FilesClick the + next to Editor/Debugger in the left pane to view all categories ofEditor/Debugger preferences. Select a cat

Seite 248

Starting, Customizing, and C losing the Editor/DebuggerWhen working with files created for C/C ++, Java, and HTML, you can specifysyntax highlighting

Seite 249 - Other Forms of Help

6 Editing and Debugging M-FilesEntering Statements in the Editor/DebuggerIn this section...“Use Comma nd Window Feature s in the Editor/Debugger” on p

Seite 250

Entering Statements in the Edito r/Debugger• Reverse Case to change the case of each letterThis is useful, for example, when copying syntax from help

Seite 251

6 Editing and Debugging M-Files• “C ommenting in Java and C/C++ Files Using the MATLABEditor/Debugger” on page 6-17• “Commenting in M - File Using A n

Seite 252

Entering Statements in the Edito r/DebuggerCommenting in Java and C/C++ Files Using the MATLABEditor/DebuggerFor Javaand C/C++ files, selecting Text &

Seite 253 - Workspace, Search Path

6 Editing and Debugging M-FilesTo com m ent a contiguous group of lines, type %{ before the first line and%} afterthelastlineyouwanttocomment. Thisisr

Seite 254 - MATLAB Workspace

Entering Statements in the Edito r/DebuggerCommenting Out Part of a StatementTo comment out the end of a statement in an M-file, put the commentcharac

Seite 255 - Opening the Work

6 Editing and Debugging M-FilesNote that Middle Initial is g r een, which is the syntax highlighting color fora comment.MATLAB continues processing th

Seite 256

Entering Statements in the Edito r/Debuggeras you reach the 75th column, the comment automatically continues on thenext line.Tab Completion in the Edi

Seite 257 - Saving the Current Workspace

Startup OptionsAdding Startup Options for Windows PlatformsYo u can add selected startup options (also called command flags or switchesfor the command

Seite 258 - Saving Selected Variables

6 Editing and Debugging M-Files• “ Tab Co mpletion for Structures” on page 6-2 5• “Tab Completion for Properties” on page 6-26• “U sing Tab for Spacin

Seite 259 - Importing Data

Entering Statements in the Edito r/DebuggerMultiple Possible CompletionsIf there is m ore than one name that starts with the characters you typed, whe

Seite 260 - Deleting Workspace Variables

6 Editing and Debugging M-FilesYo u can navigate the list of possible completions using up and down arrowkeys, and Page Up and Page Down keys. You can

Seite 261

Entering Statements in the Edito r/DebuggerContinue narrowing the list in the same way. For the above example, type oand press Tab to further narrow t

Seite 262

6 Editing and Debugging M-FilesTab Completion for PropertiesComplete property names for figures in the current workspace using tabcompletion, as in th

Seite 263 - NaN, although

Entering Statements in the Edito r/DebuggerUsing Tab for SpacingIf the preference for tab completion is selected, and you want to also use theTab key

Seite 264 - Opening t

6 Editing and Debugging M-FilesAppearance of an M-File — Making F iles More ReadableIn this section...“Syntax Highlightin g” on page 6-28“Indenting” o

Seite 265

Appearance of an M-File — Making Files More ReadableIndentingAutomatic IndentingYoucansetanindenting preference so that program controlentries are aut

Seite 266 - Multidimensional Arrays

6 Editing and Debugging M-Files(a function within a function) in the Editor/Debugger. For details, see in theonline documentation.Line and Column Numb

Seite 267 - R = rand(1,2,3)

Appearance of an M-File — Making Files More ReadableRight-Hand Text LimitBy default, a light red vertical line (rule) appears at column 75 in theEdito

Seite 268

1 Startup and Shutdown... matlab.exe -nosplash -r "results"Startup Options in DOS WindowWhen you start MATLAB in a DOS window, include start

Seite 269 - Elements in the Array Editor

6 Editing and Debugging M-FilesCode folding is p articularly useful for improving readability when an M-filecontains numerous subfunctions and you wan

Seite 270

Appearance of an M-File — Making Files More Readable6-33

Seite 271

6 Editing and Debugging M-FilesWhen y ou expand a function, but collapse its associated help code, theEditor/Debugger displays all the function code a

Seite 272

Appearance of an M-File — Making Files More Readable6-35

Seite 273

6 Editing and Debugging M-FilesTo expand code for a construct that is currently collapsed, do one of thefollowing:• Click the plus sign iconto the lef

Seite 274 - International Number Handling

Appearance of an M-File — Making Files More Readable6-37

Seite 275 - Search Path

6 Editing and Debugging M-FilesCode Folding Behavior and PreferencesBe aware of the following:• You can change the current code folding settings, by s

Seite 276

Appearance of an M-File — Making Files More Readable6-39

Seite 277

6 Editing and Debugging M-FilesAdjustthesizeoftheviewsbydragging the splitter. The pointer assumes anarrow shape when it is positioned on the splitter

Seite 278 - Viewing and Sett

Appearance of an M-File — Making Files More Readable• Dragthesplittertoanedgeofthewindow.• Double-click the splitter.• Select Window>Split>Scree

Seite 279 - Viewing the Search Path

Startup OptionsPlatformOption DescriptionUNIX-nodesktopStart MATLAB without bringing up the MATLABdesktop. Use this option to run without an X-window,

Seite 280

6 Editing and Debugging M-FilesNavigating in an M-FileIn this section...“Going to a Line N umber” on page 6-42“Going to a Function (Subfunctions and N

Seite 281

Navigating in an M-FileFunctions in the list appear alphabetically by name. To order them by theirposition inthe file, click the Line column heading.

Seite 282 - Saving Settings to the Path

6 Editing and Debugging M-FilesTo set a bookmark, position the cursor anywhere in the line and selectGo > Set/Clear Bookmark. A bookmark icon a ppe

Seite 283

Navigating in an M-FileFor example, if you open a file and make changes at lines 3, 9, and 6, useGo > Backto return to line 9, then 3, then 1, and

Seite 284

6 Editing and Debugging M-FilesLines Navigated to Using Go BackUse Go > Back and Forward to go to lines you previo us ly edited or navigate dto via

Seite 285

Navigating in an M-FileFeature Examples NotesDebugging n avig ation Lines with breakpointsthat were stopped at whilerunning, and lines steppedtoA line

Seite 286

6 Editing and Debugging M-Filesthe split, Go > Back and Forward do not go to any lines that were visitedin the lower (or right) view.OpeningaSelect

Seite 287 - File Management Operations

Finding Text in FilesFinding Text in F ilesIn this section...“Finding Text in the Current File” on page 6-49“Finding and Replacing Text in the Current

Seite 288 - Current D irectory Browser

6 Editing and Debugging M-FilesThe search begins at the current cursor position. MATLAB finds the textyou specified and highlights it. To find another

Seite 289

Finding Text in Files3 To save the changes to the file, select Save fro m the File menu.You can repeat this formultiplefiles.Function AlternativeforFi

Seite 290 - Viewing and Maki

1 Startup and ShutdownPlatformOption DescriptionAll-nosplashStart MATLAB without displaying the MATLAB splashscreen.All-r "statement"Automat

Seite 291

6 Editing and Debugging M-Files3 In the increm en t al se arch fie ld, ty pe the text you want to find. For example,typeplot.As you type t he first le

Seite 292

Finding Text in Files• If you mistype in the incremental search field, use the backspace key toremove the last letters and make corrections.• A fter f

Seite 293 - Changing the Display

6 Editing and Debugging M-FilesComparing Files — File Comparison ToolIn this section...“What Is the File Comparison Tool?” on page 6-54“Running the Fi

Seite 294

Comparing Files — File Comparison Tool• Tools > Compare Against > Autosave Version to compare the openfile to the Editor/Debugger’s automatic co

Seite 295 - Directories and Files

6 Editing and Debugging M-Files4 Use features of the File Comparisons tool to work with the results.Increase or Decrease Line Lengths ShownBy default,

Seite 296 - Creating New Director ies

Comparing Files — File Comparison Toolvertical ed ges of the window to make it wider. With a na rrower wind ow size, ifthere are more columns shown in

Seite 297

6 Editing and Debugging M-FilesAlternative WaystoAccesstheToolThese are additional ways you can access the tool:• From the MATLAB desktop, select Desk

Seite 298

Keyboard Shortcuts in the Edito r/DebuggerKeyboard Shor tcuts in the Editor/DebuggerFollowing is the list of keys that serv e a s shortcuts for using

Seite 299 - Opening and Running Files

6 Editing and Debugging M-FilesKey or MouseAction forWindowsPreferenceAdditionalControl Keyfor EmacsPreferenceKey or M ouseAction forMacintoshPreferen

Seite 300

Keyboard Shortcuts in the Edito r/DebuggerKey or MouseAction forWindowsPreferenceAdditionalControl Keyfor EmacsPreferenceKey or M ouseAction forMacint

Seite 301

Toolbox Path Caching in MATLABToolbox Path Caching in MATLABIn this section...“About Toolbox Path Caching” o n page 1-17“Using the Cache File Upon Sta

Seite 302

6 Editing and Debugging M-FilesSaving, Printing, and Closing Files in the Editor/DebuggerIn this section...“Saving Files” on page 6-62“Printing M -Fil

Seite 303

Saving, Printing, and Closing Files in the Editor/DebuggerNote Save any M-files you create and any M-files from The MathWorksthatyoueditinadirectoryth

Seite 304 - Opening Files from Find Files

6 Editing and Debugging M-FilesThere is a preference to Automatically delete autosave files.Withthis preference selected, when you close an M -file in

Seite 305

Saving, Printing, and Closing Files in the Editor/DebuggerIf each file is open in a separate window, close all the files at once using t heClose All D

Seite 306 - Comparing Files

6 Editing and Debugging M-FilesRunning M-Files in the E ditor /Debugg erIn this section...“Running M-Files with No Input Arguments in the E ditor/Debu

Seite 307

Running M-Files in the Editor/DebuggerGeneral Display Options, select the check box for E n able datatips inedit mode.Using Configurations — Running M

Seite 308 - Auto-Refresh

6 Editing and Debugging M-Files2 ClickthedownarrowontheRunbuttonintheEditor/Debuggertoolbarand select Edit Configurations forfilename, where filename

Seite 309 - Editing and Debugging

Running M-Files in the Editor/Debugger3 In the dialog box, e nter MATLAB statements in the MATLAB expressionarea of the dialog box, specifying what yo

Seite 310

6 Editing and Debugging M-FilesThe MATLAB e xpress ion area provides syntax highlighting and showsM-Lint messages, similar to the Editor/Debugger.4 To

Seite 311 - BeginwithExistingCode

Running M-Files in the Editor/Debugger5 You can modify the statements in the MATLAB expression area ofthe dialog box and click Run to see the results

Seite 312 - File Exchange

1 Startup and ShutdownWe strongly recommend that you saveanyM-filesyoucreateandanyMathWorks supplied M-files that you edit in a directory that is noti

Seite 313

6 Editing and Debugging M-FilesTo run the config uration, select the configuration name. MATLAB runsthe expression you specified in the configuration.

Seite 314

Running M-Files in the Editor/Debugger• S mall value, e.g., 3, for debugging and testing• Realistic value, e.g.,200 or more, for a specific project• R

Seite 315 - Starting the Editor/Debugger

6 Editing and Debugging M-Filescollatplot_new_test, describe d in “Create and Run a Configuration foran M-file” on page 6-67.For example, renamecollat

Seite 316

Running M-Files in the Editor/Debugger5 Click Done to close the Edit M-File Configurations dialog box.Find Configurations1 Open any M-file in Editor/D

Seite 317

6 Editing and Debugging M-Files3 Type a term in the filter fieldto find an M-file orconfiguration by name.MATLAB displays only those M -files whose na

Seite 318 - M-File Cells

Running M-Files in the Editor/Debugger4 ExpandtheM-filenametoseeassociatedconfigurationswhosenamescontain the te rm you entered i n the filter field.

Seite 319

6 Editing and Debugging M-Files5 To see the expression in that configuration, select the configuration, orposition the pointer over the name.6 As you

Seite 320

Running M-Files in the Editor/Debugger3 Select the configuration y ou want to delete.4 Click the Removebutton.5 To undo the last d eletion, click the

Seite 321 - Closing the Editor/ Debugger

6 Editing and Debugging M-FilesTo reassociate configurations1 In the list of configurati on s (left pane), select the M-file. T he AssociatedM-file di

Seite 322 - Editor/Debugger

Running M-Files in the Editor/Debugger4 You mightwant to rename the configurations to be consistent with the newM-file name, or at least to not reflec

Seite 323 - Adding Comments

Toolbox Path Caching in MATLABFunction AlternativeTo update the cache, userehash toolbox. Toalsoupdatethecachefile,userehash toolboxcache. For more in

Seite 324

6 Editing and Debugging M-Files5 For an M-filenamechange,youmightneedtomodifytheconfiguration statements to run correctly. For this examp l e, modifyt

Seite 325

Running M-Files in the Editor/DebuggerSeeAlso—OtherWaystoRunM-FilesfromtheEditor/Debugger• See “Running an M-File with Breakpoints” on p age 6-111 for

Seite 326

6 Editing and Debugging M-FilesFinding Errors, Debugging, and Correcting M-FilesThis section introduces general techniques for finding errors and usin

Seite 327

Finding Errors, Debugging , and Correcting M-FilesTechnique orTo ol Description For More InformationError MessagesWhen you run an M-file with a syntax

Seite 328

6 Editing and Debugging M-FilesTechnique orTo ol Description For More InformationOtherDebuggingTechniques•Addkeyboard statements to the M-file —keyboa

Seite 329

M-Lint Code AnalyzerM-Lint Code AnalyzerIn this section...“What Is M -Lint?” on page 6-87“WaystoUseM-Lint”onpage6-87“M-Lint Automatic C ode Analyzer i

Seite 330

6 Editing and Debugging M-FilesM-Lint Automatic Code Analyzer in theEditor/DebuggerTo use the M-Lintcontinuous code checking in an M-file in theEditor

Seite 331

M-Lint Code Analyzer2 Open an M-file in the Editor/D ebugg er. This example uses the samplefilelengthofline.m:a Open the example file:6-89

Seite 332 - Narrowing Completions Shown

6 Editing and Debugging M-Filesopen(fullfile(matlabroot,'help','techdoc','matlab_env','examples','lengtho

Seite 333

M-Lint Code AnalyzerCurrent cursor positionM-Lint message indicator for all messages in entire file:- Red means errors detected- Orange means warnings

Seite 335 - Using Tab for Spacing

1 Startup and ShutdownAdditional Diagnostics with Toolbox Path CachingTo display information about startup time when you start MATLAB, selectthe Enabl

Seite 336

6 Editing and Debugging M-Files4 Click the M-Lint message indicator to go to the next code fragmentcontaininganM-Lintmessage. Thenextcodefragmentisrel

Seite 337 - Indenting

M-Lint Code Analyzerextraneous and you could delete it. But it might be that you actuallyintended to use the variable, as shown in step 6 of this exam

Seite 338 - Highlight Current Line

6 Editing and Debugging M-FilesRight-click the highlighted code (for a single-button mouse, use Ctrl+click).The first item in the context menu indicat

Seite 339 - Constructs

M-Lint Code AnalyzerThere is a preference you can set for the color—f or more information, see“Other Colors” on page 2-75.8 You might want to ignore c

Seite 340

6 Editing and Debugging M-Filestemp = diff([data{1}(:) data{2}(:) data{3}(;)]);Multiple messages can represent a single problem or multiple problems.A

Seite 341

M-Lint Code AnalyzerThat single change addressed the issues in all o f the M-Lint messagesfor line 48.Because the change you made removed the only err

Seite 342

6 Editing and Debugging M-FilesSuppressing M-Lint Indicators and MessagesDepending on what stage you are at in completing the M-file, you m ightwant t

Seite 343

M-Lint Code AnalyzerThere are a few different ways to suppress the M-Lint indicators andmessages:• “Ignore Only a Specific Instance” on page 6-99• “Di

Seite 344

6 Editing and Debugging M-FilesRight-click at an M-Lint underline and select the option instructing M-Lintto ignore only this instance of the message,

Seite 345

M-Lint Code AnalyzerM-Lint adds %#ok for a specific message to theend of a line for which you specified the M-Lint messageshould be suppressed.Disable

Seite 346 - Split Screen Display

Other Startup TopicsOther Startup TopicsIn this section...“Error Log Reporter” on page 1-21“Passing Perl Variables on Startup” on page 1-21“Startup an

Seite 347

6 Editing and Debugging M-Filestxt file. You can reuse the settings for any M-f ile, o r provide the settings fileto another user.To use the saved set

Seite 348

Debugging Process a nd FeaturesDebugging Process and FeaturesIn this section...“Ways to Debug M-Files” on page 6-103“Preparing for Debugging” on page

Seite 349 - • Double-click the splitter

6 Editing and Debugging M-Filesthatareonthesearchpath.Ifallfilestobeusedareinthesamedirectory,you can instead m ake that directory be the current dire

Seite 350 - Navigating in an M-File

Debugging Process a nd FeaturesCode for collatz.m.function sequence=collatz(n)% Collatz problem. Generate a sequence of integers resolving to 1% For a

Seite 351 - Going to

6 Editing and Debugging M-FilesTry out collatzplot to see if it w orks correctly. Use a simple input value,for example, 3, and com pare the re sults t

Seite 352

Debugging Process a nd FeaturesSetting BreakpointsSet breakpointstopauseexecutionoftheM-filesoyoucanexaminevalueswhere you think the problem might be.

Seite 353

6 Editing and Debugging M-Filesonly stop at the for statement once. Instead place the breakpoint at the nextline,m=n+1 to stop at each pass through th

Seite 354

Debugging Process a nd FeaturesValid (Red) an d Inv alid (Gray) Breakpoints . Red breakpoints are validstandard breakpoints. If breakpoints are instea

Seite 355

6 Editing and Debugging M-FilesBreakpoints are gray for either of these reasons:• Thefilehasnotbeensavedsincechangesweremadetoit. Savethefileto make b

Seite 356 - OpeningaSelectioninanM-File

Debugging Process a nd FeaturesSome useful related functions are•dbtype — Lists the M-file with line numbers in the C ommand Window.•dbstatus —Listsbr

Seite 357 - Finding Text in F iles

1 Startup and Shutdown#!/usr/local/bin/perl$val = 10;system('matlab -r "test(' . ${val} . ')"');2 Invoke the Perl script

Seite 358 - Replacing Text

6 Editing and Debugging M-Files• The function displayed in the Stack field o n the toolbar changes toreflect the current function (sometimes referred

Seite 359

Debugging Process a nd FeaturesToolbarButtonDebug MenuItem DescriptionFunctionAlternativeStep Execute the current line of theM-file.dbstepStep In Exec

Seite 360

6 Editing and Debugging M-FilesExamining ValuesWhile the program is paused, you can view the value of any variable currentlyin the workspace. Ex am in

Seite 361 - Finding Text in Files

Debugging Process a nd FeaturesViewing Values as Datatips in the Editor/DebuggerIn the Editor/Debugger, position the pointer to the left of a var iabl

Seite 362

6 Editing and Debugging M-FilesCommand Window and M ATLAB displays its current value. For the example,to see the value ofn,typenMATLAB returns the exp

Seite 363

Debugging Process a nd Featuresand the Array Editor opens, showing that n =2asexpected.Evaluating a SelectionSelect a variable or equation in an M -fi

Seite 364

6 Editing and Debugging M-Filescalling function, which automatically runs the rest of the called function andreturns to the next line in the calling f

Seite 365 - Compare to Other Files

Debugging Process a nd Featuresprogram is paused, assign a new value to the variable in the CommandWindow, Workspace browser, or Array Editor. Then co

Seite 366 - Alternative Way

6 Editing and Debugging M-FilesDisabling and Enabling Breakpoints. You can disable selectedbreakpoints so the prog ram temporarily ignores them and ru

Seite 367

Debugging Process a nd Featuresdbclear all in collatzplotBreakpoints a re automatically cleared when you• E nd the MATLAB session• Clear the M-file us

Seite 368

Quitting MATLABQuitting MATLABIn this section...“Ways to Quit MATLAB” on page 1-23“Confirm Quitting MATLAB” on page 1-23“Running a Script W hen Quitti

Seite 369 - >>

6 Editing and Debugging M-Files1 Endthedebuggingsession. OnewaytodothisistoselectExit DebugMode from the Debug menu.2 In collatzplot.m line 12, change

Seite 370 - Saving Files

Debugging Process a nd Features6 Test the function for a slightly larger value of m,suchas6,tobesuretheresults a re s till accurate. To make it easier

Seite 371 - Autosave

6 Editing and Debugging M-Filescollatzplot(6)7 To make debugging easier, you ran collatzplot for a small value of m.Now that you know it works correct

Seite 372 - Closing M-Files

Debugging Process a nd FeaturesThe following figure shows the lengths of the Collatz series for n =1throughn =500.Running Sections in M-Files That Hav

Seite 373

6 Editing and Debugging M-Fileschoose Evaluate Selection from the context menu. You can also use cellmode to do this.Conditional BreakpointsSet condit

Seite 374

Debugging Process a nd FeaturesThe MAT LAB Ed itor conditional breakpoint dialog box opens as shownin this example.2 Type a condition in the dialo g b

Seite 375

6 Editing and Debugging M-FilesCopying, Modifying, Disabling, and Clearing ConditionalBreakpointsTo copy a conditional breakpoint, right-click the ico

Seite 376

Debugging Process a nd Featuresthat line and select the action. MATLAB prompts you to specify the exactbreakpoint on which to act in that line.When yo

Seite 377

6 Editing and Debugging M-Files• “Function Alternative for Error Breakpoints” on page 6-132Setting Error BreakpointsTo set error breakpoints, select D

Seite 378

Debugging Process a nd FeaturesErrors. When an error occurs, execution stops, unless the error is in atry...catch block. MATLAB enters debug mode and

Seite 379

1 Startup and ShutdownFor more informatio n , see “Confirm ation Dialogs Pre ferences” on page 2-81.You can also display your own quitting confirmatio

Seite 380

6 Editing and Debugging M-FilesMessage Identifier dialog box. An example of an error m essage identifierisMATLAB:UndefinedFunction. Similarly, to obta

Seite 381

Using Cells for Rapid Code Iterati on a nd P ub lishi ng ResultsUsing Cells for Rapid Code Iteration and Publishing ResultsIn this section...“What Are

Seite 382

6 Editing and Debugging M-FilesIf you h ave an active Internet connection, you can watch the Rapid CodeIteration Usi n g Cells video demo for an overv

Seite 383 - Find Configurations

Using Cells for Rapid Code Iterati on a nd P ub lishi ng ResultsDefining CellsCell features operate on ce lls, where a cell is contiguous lines of cod

Seite 384

6 Editing and Debugging M-Fileslines of code you want in a cell and then select Cell > Insert Cell DividersAround Selection.Yo u can define a cell

Seite 385

Using Cells for Rapid Code Iterati on a nd P ub lishi ng ResultsExample — Define CellsThis example defines two cells for a simple M- file called sine_

Seite 386 - Configurations

6 Editing and Debugging M-Files2 Position the cursor at the start of the first line. Select Cell > Insert CellDivider.The Editor/D ebugger inserts%

Seite 387 - 4 Click the Remove

Using Cells for Rapid Code Iterati on a nd P ub lishi ng ResultsRemoving CellsTo remove a cell, delete one of the percent signs (%) from the line that

Seite 388

6 Editing and Debugging M-FilesNavigating Among Cells in an M-FileTo move to the next cell, select Cell > Next Cell.Tomovetothepreviouscell,select

Seite 389 - 4 You might

Using Cells for Rapid Code Iterati on a nd P ub lishi ng ResultsModifying Values in a CellYou can use cell features to modify numbers in a cell, which

Seite 390

Quitting MATLABmake note of what s eems to cause it and look fo r information about it in theMathWorks Bug Reports database.There are some situations

Seite 391

6 Editing and Debugging M-Files2 Assume you want to produce a smoother curve. Use more values for x in0:1:6*pi. Position the cursor in line 4, next to

Seite 392

Using Cells for Rapid Code Iterati on a nd P ub lishi ng ResultsThe curve is smooth, but becaus e there are m ore values, pro cessing time isslower. I

Seite 393

6 Editing and Debugging M-FilesMATLAB updates the figure.Using Cells in Function M-FilesYou can define an d evaluate cells in f unction M - fi les as

Seite 394

7Tuning and ManagingM-FilesThis set of tools provides useful information about the M-files in a directorythat can help you re fine the files and impro

Seite 395 - M-Lint Code Analyzer

7 Tuning and Managing M-FilesDirector y Repor ts in Current Directory BrowserIn this section...“Accessing and Using Directory Reports” on page 7-2“TOD

Seite 396 - Editor/Debugge

Directory Rep orts in Current Directory BrowserThe report you selected appears as an HTML document in the MATLAB WebBrowser:• In a report,clickafilena

Seite 397 - Open the example file:

7 Tuning and Managing M-FilesTODO/FIXME ReportThe TODO/FIXME Report shows M-files that contain text strings youincluded as notestoyourself,suchasTODO.

Seite 398

Directory Rep orts in Current Directory Browser7-5

Seite 399

7 Tuning and Managing M-FilesHelp ReportThe Help Report presents a summary view of the help compo ne nt ofyour M-files. InMATLAB, the M -file help com

Seite 400

Directory Rep orts in Current Directory BrowserShow SubfunctionsWithShow subfunctions selected, the Help Report displays helpinformation for all subfu

Seite 401

1 Startup and Shutdown1-26

Seite 402

7 Tuning and Managing M-FilesDescriptionWith Description selected, the Help Report displays the first lin e of help inthe M-file. If the first comment

Seite 403

Directory Rep orts in Current Directory BrowserThe report looks for a line in the M-file help that begins w ith the string Seealso. If the report does

Seite 404

7 Tuning and Managing M-FilesTo access this report, follow the instructions in “Accessing and Using DirectoryReports” on page 7-2.If there is noConten

Seite 405

Directory Rep orts in Current Directory BrowserUse the link s displaye d for each line, or edit the Contents.m file directly, oredittheM-filestomaketh

Seite 406 - (in functions)

7 Tuning and Managing M-FilesIf you always want the Contents.m file to reflect all files in the directory,you can automatically generate a newContents

Seite 407

Directory Rep orts in Current Directory BrowserFiles Not In Contents.m. This message appears when a file in the directoryis not inContents.m. These me

Seite 408

7 Tuning and Managing M-FilesThe Dependency Report is similar to running the depfun function, althoughthe two do not provide the exact same results. F

Seite 409 - %#ok for that

Directory Rep orts in Current Directory BrowserCoverage ReportRun the Coverage Report after you run the Profiler to identify how much of afileranwheni

Seite 410

7 Tuning and Managing M-FilesM-Lint Code Check ReportIn this section...“Running the M-Lint Code Check Directory Report” on page 7-16“Making Changes Ba

Seite 411 - Preparing for Debugging

M-Lint Code Check ReportClick a line numberto open theM-file in theEditor/Debuggerat the line.Line number andmessagedescribing apotential problemor im

Seite 412

2DesktopIf you have an active Internet connection, you can watch the Working inthe Development Environment video demo for an o ve rview of the majorfu

Seite 413 - Code for collatzplot.m

7 Tuning and Managing M-Files• M-Lint does not provide perfect information about every situation andin some cases, you might not want to make any chan

Seite 414

M-Lint Code Check Report• Use the Help browser Search and Index panes to find documentationabout terms presented in the M-Lint messages.Other techniqu

Seite 415 - Setting Breakpo

7 Tuning and Managing M-Files7-20

Seite 416 - Setting Standard Breakpoints

M-Lint Code Check ReportMessages and Resulting Changes for the lengthofline Example. Thefollowing table describes each message and demonstrates a way

Seite 417

7 Tuning and Managing M-FilesMessage — Code (Original Line Numbers)Explanation and Updated Code (NewLine Numbers)24: 'notline' might be grow

Seite 418

M-Lint Code Check ReportMessage — Code (Original Line Numbers)Explanation and Updated Code (NewLine Numbers)34: 'data' might be growing insi

Seite 419 - Running the Example

7 Tuning and Managing M-FilesMessage — Code (Original Line Numbers)Explanation and Updated Code (NewLine Numbers)42: 'data' might be growing

Seite 420 - SteppingThroughanM-File

M-Lint Code Check ReportMessage — Code (Original Line Numbers)Explanation and Updated Code (NewLine Numbers)49: Terminate statement with semicolonto s

Seite 421

7 Tuning and Managing M-FilesUpdated M-Lint CodeCheck Report aftermaking changes tothe lenghtofline filebased on M-Lintmessages. Now, nomessagesare re

Seite 422 - Examining Value

Profiling fo r Improving PerformanceProfiling for Improving PerformanceIn this section...“What Is Profiling?” on page 7-27“Profiling Proces s and Guid

Seite 423 - K>> prompt. To see the

2 DesktopFonts Preferences for Des kto p Tools(p. 2-62)Use desktop font preferences tospecify the font characteristics forMATLAB desktop tools.Colors

Seite 424

7 Tuning and Managing M-FilesProfiling Process and GuidelinesHere is a general process you can follow to use the Profiler to improveperformance in you

Seite 425 - Evaluating a Selection

Profiling fo r Improving PerformanceUsing Profiling as a Debugging ToolThe Profiler is a useful tool for isolating problems in your M -f il es.For exa

Seite 426

7 Tuning and Managing M-FilesFor information about the reports generated by the Profiler, see “ProfileSummary Report” on page 7-33 and “Profile Detail

Seite 427 - Ending Debugging

Profiling fo r Improving PerformanceTo profile an M-file or a line of code, follow these steps:1 In the Ru n this code field in the Profiler, type the

Seite 428

7 Tuning and Managing M-Files2 Click Start Profiling (or p ress Enter after typing the statement).While the Profiler is running, the Profile time indi

Seite 429 - Completing the Example

Profiling fo r Improving Performance2 Start the graphical user interface. (If you d o not want to include its startupprocess in the profile, do not cl

Seite 430

7 Tuning and Managing M-Filesorder by the amount of time they took to process. To sort the functionsalphabetically, click the Function Name link at th

Seite 431

Profiling fo r Improving PerformanceProfile Detail ReportThe Profile Detail report shows profiling results for a selected function thatwas called duri

Seite 432

7 Tuning and Managing M-FilesControlling the Contents of theDetail Report Display (p. 7-36)Customize display to include onlysections you are intereste

Seite 433

Profiling fo r Improving Performance7-37

Seite 434 - Conditional Breakpoints

Overview of the DesktopOver view of th e DesktopIn this section...“About the Desktop” on page 2-3“Summary of Desktop Tools” on page 2-5About the Deskt

Seite 435

7 Tuning and Managing M-FilesProfile Detail Report HeaderThe detail report header includes the name of the function that was profiled,the number of ti

Seite 436 - Breakpoints

Profiling fo r Improving PerformanceNote that this was not selected in the example. Click a line n umber to viewthat line of code in the sou rce listi

Seite 437 - Error Breakpoints

7 Tuning and Managing M-FilesM-Lint ResultsTo include the M-Lint results section in the detail report display, selectthe Show M-Lint results check box

Seite 438 - Setting Error Breakpoints

Profiling fo r Improving PerformanceFunction ListingTo include the Function listing s ection in the detail report display, selectthe Show function lis

Seite 439 - 3 Click Add

7 Tuning and Managing M-FilesThe profile FunctionThe Profiler is based on the results returned by the profile function. Thissection describes• “profil

Seite 440

Profiling fo r Improving Performanceprofile Function Syntax SummaryHere is a summary of some of the main forms of profile.Fordetailsaboutthese and oth

Seite 441 - Rapid Code Iteration Overview

7 Tuning and Managing M-Files1 To start profile, type in the Command Windowprofile on2 Execute an M-file. T his example runs the Lotka-Volterra predat

Seite 442 - %%.Fordetails,see

Profiling fo r Improving Performance7 To save the profile report, use the profsave function. This function storesthe profile information in separate H

Seite 443 - Defining Cells

7 Tuning and Managing M-FilesClockSpeed: 3.0000e+009Name: 'MATLAB'5 The FunctionTable field is an array of structures, where each structurer

Seite 444 - Cell Titles and Highlighting

Profiling fo r Improving PerformanceIsRecursive: 0PartialData: 07 To view the history data generated by profile,viewtheFunctionHistory,for example,sta

Seite 445 - Example — Define Cells

ContentsStartup and Shutdown1Starting MATLABon Windows Pla tfor ms...1-2Starting M ATLAB from the Windows Desktop or a DOSWindow...

Seite 446

2 DesktopView or change thecurrent directory.Move, maximize,minimize or closea window.Enter MATLABstatements at theprompt.Menus change,depending on th

Seite 447 - Removing Cells

7 Tuning and Managing M-Files7-48

Seite 448 - EvaluatingCellsinanM-File

8Publishing ResultsMATLAB provides two different approaches for publishing: using cells andwith the Notebook features for Microsoft Word.Publishing to

Seite 449 - Example — Evaluate Cells

8 Publishing ResultsPublishingtoHTML,XML,LaTeX,Word,andPowerPointUsing CellsIn this section...“About Publishing M-Files” on page 8-2“Publishing Script

Seite 450

Publishing to HTML, XML, LaTeX, Word, and PowerPoint Using Cellsthe start of a cell appear as plain text. Comments appearing after code in acell appea

Seite 451 - 0.0625 to 0.125

8 Publishing Resultswithin the M-file script, supply a ny input values that you had passed w henyou ran the function.ExampleofPublishingWithoutTextMar

Seite 452

Publishing to HTML, XML, LaTeX, Word, and PowerPoint Using CellsSelect File > Pub lish to HT ML to produce the following result.8-5

Seite 453 - Tuning and Managing

8 Publishing ResultsExample of Publishing with Text MarkupThis simple example adds text markup to the sine_wave.m file used in“Example of Publishing W

Seite 454 - 7 Tuning and Managing M-Files

Publishing to HTML, XML, LaTeX, Word, and PowerPoint Using Cells8-7

Seite 455

8 Publishing Results1 Add a n o verall title and introduction for the published documenta Select Cell > Insert Text Markup > > Document Title

Seite 456

Publishing to HTML, XML, LaTeX, Word, and PowerPoint Using Cellsc Replace the sample equation with the following TeX equation:0 \leq x \leq 6\piThe th

Seite 457

Overview of the DesktopSummary of Desktop ToolsThe following tools are managed by the MATLAB desktop, although not all ofthem appear by default when y

Seite 458

8 Publishing Results8-10

Seite 459 - Show Subfunctions

Marking U p Text in Cells for PublishingMarking Up Text in Cells for P ublishingIn this section...“Overview of Text Markup” on page 8-11“Text Markup f

Seite 460

8 Publishing Results• T ype the markup symbols directly in the code. Note that what you type isthe same as the code that results if you instead use th

Seite 461 - Contents Report

Marking U p Text in Cells for PublishingFormatHow to ProduceFormat Resulting Code Published Resul tsOveralldocumentheading andintroductorytext1 Positi

Seite 462

8 Publishing ResultsText Markup for Indented Text, Lists, and GraphicsIndented text, lists, and graphics are types of block styles. Block stylescontro

Seite 463 - Contents.m file directly, or

Marking U p Text in Cells for PublishingFormatHow to P roduceFormatResulting Code andExplanation Published ResultsImage1 Position the cursorbeforethel

Seite 464

8 Publishing ResultsFormatHow to P roduceFormatResulting Code andExplanation Published ResultsBulleted list1 Position the cursorbeforethelinewhereyou

Seite 465 - Dependency Repor t

Marking U p Text in Cells for PublishingText Markup for HTML, LaTeX, and TeX EquationOutput TypesYo u can specify the output type for a published M-fi

Seite 466

8 Publishing ResultsFormatHow to ProduceFormat Resultin g Code Pu bl ished ResultsHTML markup1 Position the cursorbefore the line whereyou want to add

Seite 467 - Coverage Report

Marking U p Text in Cells for PublishingFormatHow to ProduceFormat Resultin g Code Pu bl ished ResultsLaTeX markup1 Position the cursorbefore the line

Seite 468 - M-Lint Code Check Report

2 DesktopArranging the DesktopIn this section...“Modifying the Desktop Configuration” on page 2-6“Opening and Arrang in g Tools” on page 2-6“Opening a

Seite 469

8 Publishing ResultsText Markup for Bold, Italic, and Monospaced TextFormatsYo u can mark up selected strings in the M-fil e comments so that they a p

Seite 470

Marking U p Text in Cells for PublishingFormat How to Produce Format Resulting Code Published ResultsItalic text Follow these steps to boldexisting te

Seite 471

8 Publishing ResultsText Markup for Inline LinksWhen you specify hypertext links within an M-file, when you publish thedocument the hypertext links be

Seite 472

Marking U p Text in Cells for PublishingFormat How to Produce Format Resulting Code Published ResultsURL ashyperlinkedtext1 Within a comment, position

Seite 473

8 Publishing ResultsPublishing M-Files Using CellsIn this section...“How to Publish an M-File” on page 8-2 4“About Published M-Files” on page 8-25“Mod

Seite 474

Publishing M-Files Using CellsNote Publishing to Microsoft Word and to PowerPoint features are availableonly on Windows systems that have the applicat

Seite 475

8 Publishing ResultsTeX equations are image files as well; in the example, the equation fileissine_wave_eq_eq####.png. MATLAB creates a thumbnail file

Seite 476

Notebook for Publishing to WordNotebook for Publishing to WordIn this section...“Using Notebook to Create an M-book” on page 8-27“See Also Publishing

Seite 477

8 Publishing ResultsCreating or Opening an M-BookCreating an M-Book from MATLABTo create a new M-book from within MATLAB, typenotebookin the Command W

Seite 478

Notebook for Publishing to Word• In Word 2007, Notebook adds the Notebook menu to the Word Add-Instab, as shown in the following illustration. Use thi

Seite 479 - What Is Profiling?

Arranging the DesktopTool Action Steps to PerformNavigating amongdesktop toolsThe Window menu displays all ope n desktop tools a nd documents,as well

Seite 480

8 Publishing ResultsMicrosoft product screen shot reprinted with permission from MicrosoftCorporation.Creating an M-Book While Running NotebookWith No

Seite 481 - Using the Profiler

Notebook for Publishing to WordMicrosoft product screen shot reprinted with permission from MicrosoftCorporation.Opening an Existing M-BookYo u can us

Seite 482

8 Publishing ResultsWhen you double-click on an M-book, Microsoft Word opens the M-book andstarts MATLAB if it is not already running. Notebook adds t

Seite 483

Notebook for Publishing to Word3 Selectthefileyouwanttoconvert.4 Click OK.• M icrosoft Word 2007:1 Create a new M-book.2 From the Insert tab, in the T

Seite 484

8 Publishing ResultsEntering MATLABCommands in an M-BookNote A g ood way to learn how to use Notebook is to open the sample M-book,Readme.doc,andtry o

Seite 485 - Profile Summary Report

Notebook for Publishing to WordEnsuring Data Consistency in M-BooksAn M-book can be thought of as a sequential record of a MATLAB session.When execute

Seite 486

8 Publishing ResultsDefining MATLAB Commands as Input Cells for NotebookIn this section...“Defining Commands as Input Cells for Notebook” on page 8-36

Seite 487 - Profile Detail Report

Defining MATLAB Commands a s Input Cells for NotebookDefining Cell Groups for NotebookYou can col lect several input cells into a single input cell. T

Seite 488

8 Publishing Results• If you select part or all of an output cell but not its input cell, Notebookincludes the input cell in the cell group.When you c

Seite 489

Defining MATLAB Commands a s Input Cells for Notebookthe calc zone. The section break indicators include bold, gray brackets todistinguish them from s

Seite 490

2 DesktopTool Action Steps to PerformGrouping tools together You can group tools so that they overlay each other in the MATLABdesktop. To group tools

Seite 491 - Child Functions

8 Publishing Results8-47. W hen you convert an input cell to text, Notebook also converts thecorresponding output cell to text.8-40

Seite 492

Evaluating MATLAB Commands with NotebookEvaluating MATLAB Commands with NotebookIn this section...“Evaluating Input Commands with Notebook” on page 8-

Seite 493 - Function Listing

8 Publishing Results3 Specify the input cell to be evaluated by selecting it with the mouse or byplacing the cursor in it. Then select Notebook > E

Seite 494

Evaluating MATLAB Commands with NotebookNote Text or numeric output always comes first, regardless of the order ofthe commands in the group.The illust

Seite 495 - -detail level

8 Publishing Results1 Select the range of cells tha t includes the input cells you want to eval u ate.Yo u can include text that surrounds input cells

Seite 496

Evaluating MATLAB Commands with NotebookThe Notebook Options dialog box opens.2 Select the Stop evaluating on error check box and click OK.Using a Loo

Seite 497 - Accessing Profiler Results

8 Publishing ResultsConverting Output Cells to Text with NotebookYou can convert an output c ell to text by undefining cells. If the output isnumeric

Seite 498

Printing a n d Formatting an M-BookPrinting and F orm atting an M-BookIn this section...“Printing an M-Book” on page 8-47“Modifying Styles in the M-Bo

Seite 499 - function

8 Publishing Resultsshades of gray. To print these cells using black type, you need to modify thecolor of the Input, Output, AutoInit, and Error style

Seite 500

Printing a n d Formatting an M-BookNote Changes you make using the Notebook Options dialog box tak e effectfor output generated after you click OK. To

Seite 501 - Publishing Results

Arranging the DesktopExample of Documents in the DesktopSome common actions for working with documents in the desktop are• Use the document bar to go

Seite 502 - Using Cells

8 Publishing Results1 Select Notebook > Notebook Options.2 In the Notebook Options dialog box, clear the Embed Figures inM-book check box.3 Click O

Seite 503

Printing a n d Formatting an M-BookTo allow graphic output for a cell, re pe at the proce dure. Notebook removesthe(no graph) marker and allows graphi

Seite 504 - 8 Publishing Results

8 Publishing ResultsAdding White Space Around Graphic Output in NotebookYo u can add w hite space around an embedded figure by moving the boundariesof

Seite 505

Configuring NotebookConfiguring NotebookAfter you install Notebook but before you begin using it, you must configureit. (Notebook is installed as part

Seite 506

8 Publishing ResultsNotebook Feature ReferenceIn this section...“Bring MATLAB to Front” on page 8-54“Define Autoinit Cell” on page 8-55“Define Calc Zo

Seite 507

Notebook Feature ReferenceDefine Autoinit CellDefine AutoInit Cell creates an autoinit cell by converting the currentparagraph, selected text, or inpu

Seite 508

8 Publishing ResultsDefine Input CellDefine Input Cell creates an input cell by converting the current paragraph,selected text, or autoinit ce ll. An

Seite 509

Notebook Feature ReferenceSee AlsoFor more information, see “Evaluating a Calc Zone with Notebook” on page8-44.Evaluate CellEvaluate Cell sends the cu

Seite 510

8 Publishing ResultsSee AlsoFor m ore information, see “Evaluating MATLAB Commands with Notebook”on page 8-41. For information about evaluating the en

Seite 511 - Overview of Text Markup

Notebook Feature ReferenceResultIf you include text in the selection, Notebook moves it after the cell group.However, if text precedes the first input

Seite 512

2 DesktopUsedocumentbar to go toopendocuments.Click namein title bar togo to opentool.Position documents within thetool using these options.Close, und

Seite 513

8 Publishing ResultsPur ge Selected Output CellsPurge Selected Output Cells deletes all output cells from the currentselection.See AlsoFor more inform

Seite 514

Notebook Feature ReferenceSee AlsoFor information about the Normal style, see “Modifying Style s in the M-BookTemplate” on page 8-47. For information

Seite 515 - FILENAME.PNG with

8 Publishing Results8-62

Seite 516

9Source Control InterfaceThe source control interface provides access to your source control systemfrom MATLAB. Source control systems, also known as

Seite 517 - Output Types

9 Source Control InterfaceTroubleshooting Source ControlProblems on Windows (p. 9-24)Solutions to some co mmon sourcecontrol p roblems.Source Control

Seite 518

Source Control Interface on WindowsSource Control Interface on WindowsIf you use source control systems to manage yo ur file s, you can interfacewith

Seite 519

9 Source Control InterfaceSetting Up the Source Control Interface on WindowsIn this section...“Create Projects in Source Control System” on page 9-4“S

Seite 520

Setting Up the Source Control Interface on WindowsThe following illustration shows the example project in the source controlsystem.To set the working

Seite 521 - MONOSPACED TEXT

9 Source Control InterfaceSpecify Source Control System in MATLABIn MATLAB, specify the source control system you want to access. SelectFile > Pref

Seite 522

Setting Up the Source Control Interface on WindowsMATLAB remem be rs preferences between sessions, so you only need toperform this action again when y

Seite 523

Arranging the DesktopSummary of Actions for Arrang ing DocumentsThis table summarizes actions for arranging documents in their tool. Forfurther inform

Seite 524

9 Source Control InterfaceThe following example shows Microsoft Visual SourceSafe.3 In the resulting Name_of_Source_Control_System Login dialog box,pr

Seite 525 - About Published M-Files

Setting Up the Source Control Interface on Windows4 In the resulting Choose project fromName_of_Source_Control_System dialog box, selectthe source con

Seite 526

9 Source Control Interface2 Right-click, and from the context menu, select Source Control > Addto Source Control.3 The resulting Add to source cont

Seite 527

Checking Files Into and Out o f Source Control from MATL AB on WindowsChecking Files Into and Out of Source Control fromMATLAB on WindowsIn this secti

Seite 528

9 Source Control InterfaceCheck Files Out of Source ControlFrom M ATLAB, to che ck out the files you want to mo dify, perform these steps:1 In the Cur

Seite 529 - Notebook features

Checking Files Into and Out o f Source Control from MATL AB on WindowsFunction AlternativeThe function alternative is verctrl with the checkout argume

Seite 530

9 Source Control InterfaceAdditional Source Control Actions on WindowsIn this section...“Getting the Latest Version of Files for Viewing or Compiling”

Seite 531 - Opening an Existing M-Book

Additional Source Control Actions on Windows2 Right-click, and from the context menu, select Source Control > GetLatest Version.The MATLAB Getlates

Seite 532

9 Source Control Interface3 Click OK.Function AlternativeThe function alternative is verctrl with the remove argument.Showing File HistoryTo show the

Seite 533 - 1 Create a new M-book

Additional Source Control Actions on WindowsA d ialog box, which is specific to your source control system, opens. ForMicrosoft Visual SourceSafe, the

Seite 534

2 DesktopDocument Action OverviewNavigating amongdocumen t s — thedocument barWhen more than one document is open within a to ol, each document iseith

Seite 535 - Debugging an

9 Source Control InterfaceThe history presented depends on your source control system. For M icrosoftVisual SourceSafe, the History dialog box opens f

Seite 536

Additional Source Control Actions on Windows2 Right-click, and from the context menu, select SourceControl > Differences.A d ialog box, which is sp

Seite 537 - This is a sample cell group

9 Source Control InterfaceFunction AlternativeThe function alternative isverctrl with the showdiff or isdiff argument.Viewing Source Con trol Properti

Seite 538

Additional Source Control Actions on WindowsA dialog box, which is specific to your source control system, opens. Thefollowing example shows the Micro

Seite 539 - Creating a Calc Zone

9 Source Control Interface1 Right-click any directory or file in the MATLAB Current Directory browser2 From the context menu, select Source Control &g

Seite 540

Perfor ming Source Control Actions from the Editor/Debugger, Simulink, or Stateflow o n WindowsPerforming Source Control Actions from theEditor/Debugg

Seite 541

9 Source Control InterfaceTroubleshooting Source Control Problems on WindowsIn this section...“Source C ontrol Error: Provider Not Present or Not Inst

Seite 542

Troubleshooting Sour ce Control Problems on Windowsinstalled on a server for a group to u se, each machine client can run a setupbut is no t required

Seite 543

9 Source Control InterfaceSource Control Interface on UNIXIf you use a source control system to manage your files, y ou can check M-filesand Simulink

Seite 544

SpecifyingtheSourceControlSystemonUNIXSpecifying the Source Control System on UNIXIn this section...“MATLAB Alternative” on page 9-27“Function Alterna

Seite 545 - Notebook

Arranging the DesktopDocument Action OverviewClosing documents To close a document, click the Close box in the document’s title bar.After closing all

Seite 546

9 Source Control InterfaceMATLAB remem be rs preferences between sessions, so you only need toperform this action when you want to access a different

Seite 547 - Printing an M-Book

SpecifyingtheSourceControlSystemonUNIXSetting a V iew and Checking Out a Director y withClearCaseonUNIXIf you use ClearCase on a UNIX platform, perfor

Seite 548

9 Source Control InterfaceChecking Files Into the Source Control System o n UNIXIn this section...“Checking In O ne or More Files Using the Current Di

Seite 549 - 3 Click OK

Checking Files Into the Source Contro l S ystem on UNIXThe files are checked into the source control system. If any file containsunsaved changes when

Seite 550

9 Source Control InterfaceFunction AlternativeUse checkin to check files into the source control system. The files can beopen or closed when you usech

Seite 551

Checking Files Out of the Source Control System on UNIXChecking Files Out of the Source Control System on UNIXIn this section...“Checking Out One or M

Seite 552

9 Source Control Interfacec To pre vent others from checking out the f iles while you have themchecked out, select Lock latest version. To check out r

Seite 553 - Configuring Notebook

Checking Files Out of the Source Control System on UNIXFor filen, use the com plete p ath and include the file extension.Use theoption argument to• C

Seite 554 - Notebook Feature Reference

9 Source Control InterfaceUndoing the Checkout on UNIXIn this section...“Impact of U ndoing a File Checkout” on page 9-36“Undoing the Checkout for One

Seite 555 - Define Calc Zone

Undoing the Checkout on UNIX2 Select File > Source Control > Undo Checkout. MATLAB undoes thechecko ut.Function AlternativeThe undocheckout func

Seite 556

Other Startup Topics ... 1-21Error Log Reporter... 1-21Passing Perl Variables on Startup...

Seite 557 - Evaluate Cell

2 DesktopTo use a predefined layout, select Desktop > Desktop Layout,andchooseaconfiguration. See more details in the online documentation.To save

Seite 558

9 Source Control Interface9-38

Seite 559 - Notebook Options

IndexIndex%comment symbol 6-16create comment 6-17, after functions 3-30; after functions 3-30! function 3-9argument length restrictions 3-10%% 6-135{%

Seite 560

Indexin Help browser 4-24Boolean searching in Help browser 4-21breaking long lines 3-18breaking out of a running program 3-9breakpointsanonymous funct

Seite 561 - Ungroup Cells

IndexclearingCommand Window 3-32variables 5-8clicking on multiple item s 2-50clipboard 2-51closingdesktop tools 2-7M-files 6-64MATLAB 1-23code analyze

Seite 562

IndexEditor/Debugger 6-21compressionMAT-files and Fig-Files 2-79conditional breakpoints 6-126configuration managementSee source control system interfa

Seite 563

Indexdelimitermatching in Editor/Debugger 3-46delimiter matchingpreferences 3-46demosusing 4-31Demossearching 4-16desktopcolor preference s 2-70config

Seite 564 - 9 Source Control Interface

Indexarranging documents 6-11closing 6-13closing files 6 -64description 6-7example 6-104go tobookmark 6-43function 6-42line number 6-42horizontal line

Seite 565

Indexfatal error 1-24favorites in Help b rows er 4-24feedback to The MathWorks 4-54Fig-filescompatibility 2-79save options 2-79file exchangefor M-file

Seite 566

Indexembedding in M-book 8-49in M-books 8-49within cell 8-14gray background color in desktop 2-73gray breakpoint icons 6-109gray lines in Editor/Debug

Seite 567

IndexHelp browser 4-13results 4-15tips 4-15initiation (init) file for MATLAB 1-12inline linkswithin cell 8-22inputto MATLAB in Command Window 3-3input

Seite 568

Examples of Desktop ArrangementsExamples of Desktop ArrangementsIn this section...“About These Examples” on page 2-16“Tool Outside of Desktop and Othe

Seite 569

Indexline wrapping 3-42lines (gray) Editor/Debugger 6-136linksCommand Window 3-13in Help browser 4-28listswithin cell 8-14load 5-7locking files on che

Seite 570

IndexMAT-filescompatibility 2-79compression options 2-79creating 5-5defined 5-5loading 5-7preferences 2-79starting MATLAB from 1-2view without loading

Seite 571 - Add Files to Source Control

Indexoutput 3-31preferences 3-41O%#ok indicator to suppress M-Lint message 7-17open 5-48opening filesCurrent Directory browser 5-47openvar 5-14operati

Seite 572

IndexCommand History window contents 3-57Command Window contents 3-33documentation 4-42help 4-42M-files 6-64printing an M-bookcell markers 8-47color 8

Seite 573 - MATLAB on Windows

IndexSsavefunction 5-6savingautomatically in Editor/Debugger 6-63M-files 6-62MAT-filespreferences 2-79workspace upon quitting 1-24screen reader 2-87sc

Seite 574

Indexsource control on UNIX p latform sgetting files 9-33locking files 9-33source control system interface 9-1UNIX platforms 9-26preferences 9-27selec

Seite 575 - Undoing the Checkout

Indexstyles in M-bookmodifying 8-47subfunctiondisplayed in Editor/D ebugger status bar 6-31subfunctionsgoing to in M-file 6-42suggestions to The MathW

Seite 576

IndexUUNC (Universal Naming Convention)pathname 7-3uncomment 6-16Undefine Cells 8-60undoin desktop 2-51in Editor 6-15undocking tools from d esktop 2-7

Seite 577

Indexopening 5-7protecting integrity 8-34saving 5-5tool 5-2viewing 5-3viewing during execution 6-114Workspace browserdescription 5-2plotting variables

Seite 578

2 DesktopAbout These ExamplesScan the illustrations in the following examples for a desktop arrangementsimilar to what you want, and then follow the b

Seite 579

Examples of Desktop ArrangementsHelp browser is undocked from desktop to providea large area for viewing documentation when needed.Four tools in the d

Seite 580

2 DesktopMaximized Tool in Desktop ExampleThis example shows a way you can temporarily increase the size of a tool sothat it occupiesthe entire area o

Seite 581

Examples of Desktop ArrangementsMaximized, the Command Window now occupies the full desktop area.Restoring the Command Window returns it to its origin

Seite 582

2 DesktopMinimized Toolsin Desktop ExampleMinimize a tool inthedesktoptogivetheremainingdesktoptoolsmorespacein the desktop. Minimizing is available o

Seite 583

Examples of Desktop ArrangementsWhen minimized, a tool, such as the Command Window in this example,is represented by a button on the desktop border.Th

Seite 584

2 DesktopHover over or click the button for a minimized tool to temporarily view or use the tool.The tool is temporarily displayed until you select an

Seite 585

Examples of Desktop ArrangementsOn the button for a minimized tool, right-click, and from the context menu,select Restore.The tool resumes the size an

Seite 586

Examples of Useful Shortcuts ... 2-32Creating Shortcuts... 2-33Running Shortcuts...

Seite 587 - @ character in the directory

2 DesktopTiled Documentsin Desktop ExampleWhenyouopenadocument (for ex ample, an M-file), it also opens the tool (forexample, the Editor/Debugger) if

Seite 588

Examples of Desktop ArrangementsThe shortcuts toolbar is hidden.The document bar is at the topedge of the Editor/Debugger.Select a button from the lis

Seite 589 - MATLAB Alternative

2 DesktopNo Empty Document Tiles ExampleToseemorethantwo documents a t once, select the T ile button and move thepointer across the gird that appears

Seite 590

Examples of Desktop ArrangementsMaximized Documents Outside of the DesktopExampleThis example illus trates a way to provide a la rge area for multiple

Seite 591 - ClearCaseonUNI

2 Desktop• A ccess any document in the Editor/Debugger using the document bar.To show the document b ar on the left side of the Edito r/Debugger,selec

Seite 592

Examples of Desktop ArrangementsDock figures in the desktop and use the float option to arrange them within a Figures group.The document bar is hidden

Seite 593 - Checking

2 DesktopUndocked Tools and Documents ExampleYou can use toolsand documents outside of the desktop. One way toachieve this is to first undock the to o

Seite 594

Examples of Desktop Arrangements2-31

Seite 595 - Directory Browser

2 DesktopShor tcuts for MATLAB — Easily Run a Group of StatementsIn this section...“What Is a Shortcut?” on page 2-32“Examples of Useful Shortcuts” on

Seite 596

Shortcuts for MATLAB — Easily Run a Group of Statementscreate a shortcut for even a single function they use frequently, such asclc to clear the Comma

Seite 597 - Version of a File

Syntax Highlighting Colors ... 2-73Other Colors... 2-75See Also...

Seite 598 - Undoing the Checkout on UNIX

2 Desktopthe Editor/Debugger preferences for ke y bindings, colors, and fonts.Note that if you copy the stateme nts from the Command Window, theprompt

Seite 599

Shortcuts for MATLAB — Easily Run a Group of StatementsFor more informa ti on on the options in the Shortcut E di tor dialog box, clickthe Help button

Seite 600

2 Desktop1 Select statemen ts from the C ommand History windo w, the C ommandWindow, or an M-file.2 Drag the selection to the desktop Shortcuts toolba

Seite 601

Shortcuts for MATLAB — Easily Run a Group of Statements4 Click the icon on the Shortcuts toolbar to run the shortcut. You can alsorun the shortcut fro

Seite 602

2 DesktopWhen y ou move the mouse ove r a shortcut icon , its label appears as a tooltip.To make la bels display in the toolbar, righ t- click the too

Seite 603

Shortcuts for MATLAB — Easily Run a Group of StatementsChanges take effect immediately.3 Click Close.For more information about using the Shortcuts Or

Seite 604

2 DesktopKeyboard Shor tcutsIn this section...“Keyboard Shortcuts (Accelerators or Hot Keys) and Mnemonics” on page2-40“Go To First Letter (Type Ahead

Seite 605

Keyboard ShortcutsWindows 2000, go to Display Control Panel, select Effects, and clear theitem Hide keyboard navigation indicators until I use the Alt

Seite 606

2 DesktopKey ResultCtrl+Shift+Tab Moves to the prev ious open tool or group of tabbed tools in the desktop.Ctrl+Page Down Moves to the next tool withi

Seite 607

Keyboard Shortcuts2-43

Seite 608

Cut,Copy,Paste,andUndoFeatures ... 3-17Enter Multiple Lines Without Running Them... 3-18Entering Multiple Functions in a Line...

Seite 609 - K>>

2 DesktopOther Desktop FeaturesIn this section...“Start Button for Accessing Tools” on page 2-44“Menus and Context Menus” on page 2-46“Toolbars” on pa

Seite 610 - Index-10

Other Desktop Features2 From the menu and s ubmenu items, select an item to open it. Use the iconsto quickly locate a type of product or tool — see th

Seite 611 - Index-11

2 DesktopIcon Description of Action When OpenedBlock library opens.Document opens in your system Web browser.Customizing the Start ButtonYou can add y

Seite 612 - Index-12

Other Desktop FeaturesToolbarsThe toolbar in the desktop provides easy access to frequently used operations.Position the p ointe r over a button for a

Seite 613 - Index-13

2 DesktopSome tools also h ave their own toolbars, which are located within the tool’sown window. For example, the Current Directory browser has its o

Seite 614 - Index-14

Other Desktop FeaturesStatus BarAlong the bottom of the desktop is the status bar. It displays messages,such as when MATLAB is busy executing statemen

Seite 615 - Index-15

2 DesktopSelecting Multiple ItemsIn many desktop tools, you can select multiple items and then select an actionto perform on all the selected items. S

Seite 616 - Index-16

Other Desktop FeaturesCut, Copy, Paste,andMoveYo u can cut and copy a selection from a desktop tool to the clipboard and thenpaste it from theclipboar

Seite 617 - Index-17

2 Desktopcan drag selections from desktop tools to other applications. For example, youcan drag text from the Editor/Debugger to Microsoft Word.Macint

Seite 618 - Index-18

Other Desktop Features• “ Fonts O ptions for Page Setup” on pag e 2- 54Specifying Page Setup OptionsTo specify page setup options, perform these steps

Kommentare zu diesen Handbüchern

Keine Kommentare