Manual
®
The Language of Technical Computing
Getting Started with MATLAB®
Version 7
How to Contact The MathWorks:
www.mathworks.com
comp.soft-sys.matlab
Web
Newsgroup
info@mathworks.com
Technical support
Product enhancement suggestions
Bug reports
Documentation error reports
Order status, license renewals, passcodes
Sales, pricing, and general information508-647-7000
Phone
508-647-7001
Fax
The MathWorks, Inc.
3 Apple Hill Drive
Natick, MA 01760-2098
support@mathworks.com
suggest@mathworks.com
bugs@mathworks.com
doc@mathworks.com
service@mathworks.com
For contact information about worldwide offices, see the MathWorks Web site.
Getting Started with MATLAB
© COPYRIGHT 1984 - 2005 by The MathWorks, Inc.
The softwaredescribed in this document is furnished under a license agreement. The software may be used
or copied only under the terms of the license agreement. No part of this manual may be photocopied or reproduced in any form without prior written consent from The MathWorks, Inc.
FEDERAL ACQUISITION: This provision applies to all acquisitions of the Program and Documentation by,
for, or through the federalgovernment of the United States. By accepting delivery of the Program or
Documentation, the government hereby agrees that this software or documentation qualifies as commercial
computer software or commercial computer software documentation as such terms are used or defined in
FAR 12.212, DFARS Part 227.72, and DFARS 252.227-7014. Accordingly, the terms and conditions of this
Agreement and onlythose rights specified in this Agreement, shall pertain to and govern the use,
modification, reproduction, release, performance, display, and disclosure of the Program and Documentation
by the federal government (or other entity acquiring for or through the federal government) and shall
supersede any conflicting contractual terms or conditions. If this License fails to meet the government'sneeds or is inconsistent in any respect with federal procurement law, the government agrees to return the
Program and Documentation, unused, to The MathWorks, Inc.
MATLAB, Simulink, Stateflow, Handle Graphics, Real-Time Workshop, and xPC TargetBox are
registered trademarks of The MathWorks, Inc.
Other product or brand names are trademarks or registered trademarks of their respective holders.Revision History
December 1996
May 1997
September 1998
September 2000
June 2001
July 2002
August 2002
June 2004
October 2004
March 2005
First printing
Second printing
Third printing
Fourth printing
Online only
Online only
Fifth printing
Sixth printing
Online only
Online only
For MATLAB 5
For MATLAB 5.1
For MATLAB 5.3
Revised for MATLAB 6 (Release 12)
Revised forMATLAB 6.1 (Release 12.1)
Revised for MATLAB 6.5 (Release 13)
Revised for MATLAB 6.5
Revised for MATLAB 7.0 (Release 14)
Revised for MATLAB 7.0.1 (Release 14SP1)
Revised for MATLAB 7.0.4 (Release 14SP2)
Contents
Introduction
1
What Is MATLAB? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-2
The MATLAB System . . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . 1-3
MATLAB Documentation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-4
MATLAB Online Help . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-4
Starting and Quitting MATLAB . . . . . . . . . . . . . . . . . . . . . . . .
Starting MATLAB . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Quitting MATLAB . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . .
MATLAB Desktop . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
1-6
1-6
1-6
1-7
Matrices and Arrays
2
Matrices and Magic Squares . . . . . . . . . . . . . . . . . . . . . . . . . . .
Entering Matrices . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
sum, transpose, and diag . . . . . ....
Regístrate para leer el documento completo.