tailieunhanh - Basics of MATLAB

Matlab is a software package that lets you do mathematics and computation, analyse data, develop algorithms, do simulation and modelling, and produce graphical displays and graphical user interfaces. To run matlab on a PC double-click on the matlab icon. To run matlab on a unix system, type matlab at the prompt. You get matlab to do things for you by typing in commands. matlab prompts you with two greater-than signs () when it is ready to accept a command from you. To end a matlab session type quit or exit at the matlab prompt | Basics of MATLAB 1 First Steps in MATLAB Starting MATLAB MATLAB is a software package that lets you do mathematics and computation analyse data develop algorithms do simulation and modelling and produce graphical displays and graphical user interfaces. To run MATLAB on a PC double-click on the MATLAB icon. To run MATLAB on a UNIX system type matlab at the prompt. You get MATLAB to do things for you by typing in commands. MATLAB prompts you with two greater-than signs when it is ready to accept a command from you. To end a MATLAB session type quit or exit at the MATLAB prompt. You can type help at the MATLAB prompt or pull down the Help menu on a PC. When starting MATLAB you should see a message To get started type one of these commands helpwin helpdesk or demo The various forms of help available are helpwin Opens a MATLAB help GUI helpdesk Opens a hypertext help browser demo Starts the MATLAB demonstration The complete documentation for MATLAB can be accessed from the hypertext helpdesk. For example clicking the link Full Documentation 2000 by CRC Press LLC Set Getting Started with MATLAB will download a portable document format PDF version of the Getting Started with MATLAB manual. You can learn how to use any MATLAB command by typing help followed by the name of the command for example help sin. You can also use the lookfor command which searches the help entries for all MATLAB commands for a particular word. For example if you want to know which MATLAB functions to use for spectral analysis you could type lookfor spectrum. MATLAB responds with the names of the commands that have the searched word in the first line of the help entry. You can search the entire help entry for all MATLAB commands by typing lookfor -all keyword. First Steps To get MATLAB to work out 1 1 type the following at the prompt 1 1 MATLAB responds with ans 2 The answer to the typed command is given the name ans. In fact ans is now a variable that you can use again. For example you can

TỪ KHÓA LIÊN QUAN