Programming MATLAB
Paul Cotofrei
information management institute master of science in finance
2018
What is MATLAB ?
Verypowerfulsoftwarepackage MATLAB=MATrixLABoratory
Numerical computing environment, oriented toward matrix computation
Shorthistory
1970 – Initially developed by Cleve Moler, the chairman of
the computer science department at the University of New
Mexico, to help students learn linear algebra
1984 – Marketed and further developed under MathWorks
company (Moler and Steve Bangert)
AvailableforWindows/UNIX/Macintosh
Main MATLAB Features
Easyandefficientprogramminginahigh-levellanguage,withan interactive interface for rapid development
Built-insupportforstate-of-the-artnumericalcomputing methods.
Moderndatastructuresanddatatypes,includingcomplex numbers.
High-qualitygraphicsandvisualization.
Largenumberofadd-ontoolboxesforapplicationsand
simulations.
Hugedatabaseofuser-contributedfiles&toolboxes,includinga large number of available tutorials & demos.
MATLAB Desktop
Desktop Environment
CurrentFolderwindowshowsfiles;thefoldersetastheCurrent Folder is where files will be saved
WorkspaceWindow:showsvariables(discussednext)
CommandHistoryWindow:showscommandsthathavebeen
entered and on what date
ToolstripontophastabsforHOME(thedefault),PLOTS,and APPS
HOMEtabisdividedintofunctionalsectionsFILE,VARIABLE, CODE, ENVIRONMENT, RESOURCES
Under ENVIRONMENT, Layout allows for customization of the Desktop Environment
Getting Help
Help-seeToolbarHOME,sectionRESSOURCES,buttonHelp
OnlineHelp
http://www.mathworks.fr/fr/help/matlab/index.html
TobrowseMATLABbuilt-infunctions,clickonxsymbolinfront
of » prompt
Toseethehelptopics:
Tofindthefunctionsinahelptopic,e.g.elfun:
Tofindoutaboutaparticularfunction,e.g.sin:
Remark The function name, in these commands, is not case-sensitive! TofindoutaboutMATLABsyntax,e.g.for:
» help sin
» doc sin
» type sin
» help
» help elfun
» help for