131A_1_Matlab Review

131A_1_Matlab Review - 1 Accessing MATLAB On Unix systems...

Info iconThis preview shows pages 1–4. Sign up to view the full content.

View Full Document Right Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: 1. Accessing MATLAB On Unix systems you can enter MATLAB with the system command PDWODE and exit MATLAB with the MATLAB command TXLW or H[LW . In Microsoft Windows, the Apple Macintosh, and in some Unix window systems, just double-click on the MATLAB icon: 2. The MATLAB Desktop MATLAB has an extensive graphical user interface. When MATLAB starts, the MATLAB window will appear, with several subwindows and menu bars. All of MATLAB’s windows are docked, which means that they are tiled on the main MATLAB window. You can undock a window by clicking its undock button: Dock it with 9LHZ ’RFN . Close a window by clicking its close button: Reshape the window tiling by clicking on and dragging the window edges. The menu bar at the top of the MATLAB window contains a set of buttons and pull-down menus for © 2002 by CRC Press LLC working with M-files, windows, preferences and other settings, web resources for MATLAB, and online MATLAB help. For example, if you prefer a simpler font than the default one, select )LOH 3UHIHUHQFHV , click on *HQHUDO and then )RQW &RORUV . Select /XFLGD &RQVROH (on a PC) or ’LDORJ,QSXW (on Unix) in place of the default 0RQRVSDFHG font, and click 2. . 2.1 Help window This window is the most useful window for beginning MATLAB users. Select +HOS 0$7/$% +HOS . The Help window has most of the features you would see in any web browser (clickable links, a back button, and a search engine, for example). The Help Navigator on the left shows where you are in the MATLAB online documentation. I’ll refer to the online Help sections as +HOS : 0$7/$% : *HWWLQJ 6WDUWHG : ,QWURGXFWLRQ , for example. Click on 0$7/$% in the Help Navigator, and you’ll see the MATLAB Roadmap (or +HOS : 0$7/$% for short). Printable versions of the documentation are also available (see +HOS : 0$7/$% : 3ULQWDEOH ’RFXPHQWDWLRQ 3’) ). You can also use the KHOS command, typed in the Command window. For example, the command KHOS HLJ will give information about the eigenvalue function HLJ . See the list of functions in the last section of this Primer for a brief summary of help for a function. You can also preview some of the features of MATLAB by first entering the command GHPR or by selecting +HOS ’HPRV , and then selecting from the options offered. © 2002 by CRC Press LLC 2.2 Launch Pad window This allows you to start up demos and other windows not present when you start MATLAB. Try /DXQFK 3DG : 0$7/$% : ’HPRV and run one of the demos from the MATLAB Demo window. 2.3 Command window MATLAB expressions and statements are evaluated as you type them in the Command window, and results of the computation are displayed there too. Expressions and statements are also used in M-files (more on this in Chapter 7). They are usually of the form: YDULDEOH H[SUHVVLRQ or simply: H[SUHVVLRQ Expressions are usually composed from operators, functions, and variable names. Evaluation of the expression produces a matrix (or other data type), which is then displayed on the screen or assigned to a variable...
View Full Document

{[ snackBarMessage ]}

Page1 / 151

131A_1_Matlab Review - 1 Accessing MATLAB On Unix systems...

This preview shows document pages 1 - 4. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online