
2 Desktop
View or change the
current directory.
Move, maximize,
minimize or close
a window.
Enter MATLAB
statements at the
prompt.
Menus change,
depending on the
tool you are using.
Select the title bar
for a tool to use
that tool.
Get
help.
Drag the separator
bar to resize
windows.
View or execute
previously run
statements.
Click the Start
button for quick
access to tools
and more.
2-4
-
508-647-7000 (Phone)
2
-
508-647-7001 (Fax)
2
-
The MathWorks, Inc
2
-
3 Apple Hill Drive
2
-
Natick, MA 01760-2098
2
-
Revision History
3
-
Contents
5
-
Help for Using MATLAB
10
-
Editing and Debugging M-Files
13
-
Tuning and Managing M-Files
16
-
Source Control Interface
18
-
Startup and Shutdown
21
-
1 Startup and Shutdown
22
-
.mat extension
23
-
.fig, .m, .mat,and.mdl
27
-
Star tup Directory for MATLAB
28
-
For Windows Platforms Only
29
-
For All P latforms
31
-
Star tup Options
32
-
$user/mytools
32
-
Startup Options
33
-
About Toolbox Path Caching
37
-
UsingtheCacheFileUponStartup
37
-
Other Startup Topics
41
-
Quitting MATLAB
43
-
-r option or run in deploye d
45
-
Over view of th e Desktop
49
-
Summary of Desktop Tools
51
-
Arranging the Desktop
52
-
Saving Desktop Layouts
59
-
Default desktop layout
64
-
The document bar is hidden
75
-
Creating Shortcuts
79
-
Running Shortcuts
81
-
Shortcuts Toolbar
81
-
Shortcut Labels on Toolbar
83
-
Click Close
85
-
Keyboard Shor tcuts
86
-
Keyboard Shortcuts
87
-
Toolbars
93
-
Status Bar
95
-
Sizing, Arra
95
-
Cut, Copy, Paste
97
-
,andMove
97
-
Specifying Page Setup Options
99
-
2 Desktop
100
-
Web Browser
101
-
Other Desktop Features
103
-
Preferences
105
-
Preferences File — matlab.prf
107
-
DefaultFontSettings
111
-
Custom Fonts Preferences
113
-
See Also
115
-
Syntax Highlighting Colors
119
-
Other Colors
121
-
MAT-Files Preferences
125
-
Accessibility
131
-
Assistive Technologies
133
-
Setting Up JAWS
135
-
Troubleshooting
137
-
- Previous history: Ctrl+p
138
-
- Next history: Ctrl+n
138
-
Running Functions —
139
-
Command Window and
139
-
The Command Window
141
-
Command W
142
-
Getting Started
143
-
Message Bar in the Command
143
-
Running M -Files
146
-
Running External Programs
147
-
2 Start M ATLAB
149
-
3 In M ATLAB, type
149
-
Function Alternative
150
-
Displaying Hype
151
-
Controlling Input
153
-
Syntax Highlighting
154
-
Recalling Previous Lines
157
-
Multiple Possible Completions
159
-
Tab Completion for Structures
162
-
Tab Completion for Properties
163
-
Controlling Output
168
-
Examples of Formats
169
-
Clearing the Command Window
170
-
Printing Comman
171
-
Keeping a Sessi
171
-
Introduction
172
-
Find Dialog Box
172
-
Incremental Search
173
-
5 To find
175
-
1,000 to 25,000.Thisisthe
180
-
Keyboard Preferences
181
-
Command Window Key Bindings
182
-
Editor/Debugger Key Bindings
183
-
Tab Completion
183
-
Tabs and Indents
184
-
Delimiter Matching
184
-
Beep — MATLAB beeps
186
-
None —Thereisnoalert
186
-
Command History Window
187
-
Searching in the
190
-
To highli
193
-
Finding Text
194
-
Settings
197
-
4 Help for Using MAT LAB
200
-
Help Browser Overview
201
-
Resizing the Hel
203
-
Types of Documentation
205
-
Adding Help Files
207
-
DocumentationinOtherLanguages
207
-
Product Roadmap
209
-
Index for the Help B rowser
211
-
Tips for Using the Index
213
-
Exact Phrases in Search
219
-
Boolean Operators in Search
219
-
Get More Results
221
-
Go to Favorites
223
-
Organize Favorites
223
-
Browse to Other Pages
225
-
Copy Information
227
-
Evaluate a Selection
227
-
Open a Selection
227
-
Help on Sele ction
227
-
View the Page Source (HTML)
227
-
Demos in the Help Browser
229
-
Searching for Demos
233
-
Product Filter
235
-
Comic Sans
239
-
Printed Documentation
240
-
Help Functions
242
-
Other Forms of Help
249
-
Workspace, Search Path
253
-
MATLAB Workspace
254
-
Opening the Work
255
-
Saving the Current Workspace
257
-
Saving Selected Variables
258
-
Importing Data
259
-
Deleting Workspace Variables
260
-
NaN, although
263
-
About the Ar
264
-
Opening t
264
-
Multidimensional Arrays
266
-
R = rand(1,2,3)
267
-
Elements in the Array Editor
269
-
International Number Handling
274
-
Search Path
275
-
Viewing and Sett
278
-
Viewing the Search Path
279
-
Saving Settings to the Path
282
-
File Management Operations
287
-
Current D irectory Browser
288
-
Viewing and Maki
290
-
Changing the Display
293
-
Directories and Files
295
-
Creating New F iles
296
-
Creating New Director ies
296
-
Opening and Running Files
299
-
Opening Files from Find Files
304
-
Comparing Files
306
-
Auto-Refresh
308
-
Editing and Debugging
309
-
BeginwithExistingCode
311
-
Demos and Examples
312
-
File Exchange
312
-
Starting the Editor/Debugger
315
-
M-File Cells
318
-
Closing the Editor/ Debugger
321
-
Editor/Debugger
322
-
Undo and Redo
323
-
Adding Comments
323
-
Narrowing Completions Shown
332
-
Using Tab for Spacing
335
-
Indenting
337
-
Line and Column Numbers
338
-
Highlight Current Line
338
-
Right-Hand Text Limit
339
-
View Function or Subfunction
339
-
Constructs
339
-
Split Screen Display
346
-
• Double-click the splitter
349
-
Navigating in an M-File
350
-
Going to
351
-
OpeningaSelectioninanM-File
356
-
Finding Text in F iles
357
-
Replacing Text
358
-
Finding Text in Files
361
-
Exchange Positions
365
-
Show Updated Files
365
-
Find Text in Files
365
-
Compare to Other Files
365
-
Alternative Way
366
-
>>
369
-
Saving Files
370
-
Autosave
371
-
Printing M-Files
372
-
Closing M-Files
372
-
Find Configurations
383
-
Configurations
386
-
4 Click the Remove
387
-
4 You might
389
-
M-Lint Code Analyzer
395
-
M-Lint Automati
396
-
Editor/Debugge
396
-
Open the example file:
397
-
(in functions)
406
-
%#ok for that
409
-
Ways to Debug M-Files
411
-
Preparing for Debugging
411
-
Code for collatz.m
413
-
Code for collatzplot.m
413
-
Setting Breakpo
415
-
Setting Standard Breakpoints
416
-
Running the Example
419
-
SteppingThroughanM-File
420
-
Examining Value
422
-
K>> prompt. To see the
423
-
Evaluating a Selection
425
-
Ending Debugging
427
-
Saving Breakpoints
429
-
Correcting an M-File
429
-
Completing the Example
429
-
Conditional Breakpoints
434
-
Breakpoints
436
-
Error Breakpoints
437
-
Setting Error Breakpoints
438
-
3 Click Add
439
-
What Are Cells?
441
-
Rapid Code Iteration Overview
441
-
%%.Fordetails,see
442
-
Defining Cells
443
-
Cell Titles and Highlighting
444
-
Example — Define Cells
445
-
Removing Cells
447
-
EvaluatingCellsinanM-File
448
-
Modifying Values in a Cell
449
-
Example — Evaluate Cells
449
-
0.0625 to 0.125
451
-
Tuning and Managing
453
-
7 Tuning and Managing M-Files
454
-
Show Subfunctions
459
-
Contents Report
461
-
Contents.m file directly, or
463
-
Dependency Repor t
465
-
Coverage Report
467
-
M-Lint Code Check Report
468
-
What Is Profiling?
479
-
Using the Profiler
481
-
Profile Summary Report
485
-
Profile Detail Report
487
-
Child Functions
491
-
Function Listing
493
-
-detail level
495
-
Accessing Profiler Results
497
-
function
499
-
Publishing Results
501
-
Using Cells
502
-
8 Publishing Results
504
-
Overview of Text Markup
511
-
FILENAME.PNG,with
515
-
FILENAME.PNG with
515
-
Output Types
517
-
% _ITALIC TEXT_
521
-
%
521
-
% Calculate and plot
521
-
521
-
MONOSPACED TEXT
521
-
About Published M-Files
525
-
Notebook features
529
-
Opening an Existing M-Book
531
-
4 Click OK
533
-
1 Create a new M-book
533
-
Ensuring Data Co
535
-
Debugging an
535
-
This is a sample cell group
537
-
Creating a Calc Zone
539
-
Notebook
545
-
Printing an M-Book
547
-
3 Click OK
549
-
Configuring Notebook
553
-
Notebook Feature Reference
554
-
Define Autoinit Cell
555
-
Define Calc Zone
555
-
Evaluate Cell
557
-
Hide Cell Markers
559
-
Notebook Options
559
-
Ungroup Cells
561
-
9 Source Control Interface
564
-
Add Files to Source Control
571
-
MATLAB on Windows
573
-
Undoing the Checkout
575
-
@ character in the directory
587
-
MATLAB Alternative
589
-
Setting a V iew an
591
-
ClearCaseonUNI
591
-
Checking
593
-
Directory Browser
595
-
Version of a File
597
-
Undoing the Checkout on UNIX
598
-
K>>
609
-
Index-10
610
-
Index-11
611
-
Index-12
612
-
Index-13
613
-
Index-14
614
-
Index-15
615
-
Index-16
616
-
Index-17
617
-
Index-18
618
Kommentare zu diesen Handbüchern