Professional Documents
Culture Documents
Programming With Matlab: © 2013 The Mathworks, Inc
Programming With Matlab: © 2013 The Mathworks, Inc
Todays Objectives
Goal: Create analysis to choose best wind turbine location by estimating power generation at multiple locations
Approach:
Interactively explore data and develop analysis approach
Load and preprocess data from observation towers Fit wind speed probability distribution Estimate average power
( )
Demo Summary
Products Used
MATLAB Statistics Toolbox
structure
Maintainable
Data types (structures, cell arrays, objects) Function types (subfunctions, nested functions,
private functions, packages)
Robust
Error checking and validating inputs
(validateattributes, validatestring, error, inputParser)
Development tools
Editor, Debugger, Code Analyzer, Profiler
8
Simple constructs (built in support for Toolboxes, parfor, gpuArray) Advanced constructs (createJob/createTask, MPI, CUDA)
High-level language
Matrix-based Math and graphics functions Traditional programming language features
Summary
The MATLAB Language
High-level language
Matrix-based Supports a range of programming styles No need for low-level administrative tasks
Math and graphics functions for engineering and science Includes features of traditional programming languages
Flow control and error handling Fundamental data types and advanced data structures
12
Summary
MATLAB Development Environment
Command Window
Provides immediate results by interactively executing commands
Data visualization
MATLAB Editor
Debugger Code Analyzer
Summary
Multiple Ways to Get Help
doc
help <name>
14
Resources
Webinars
Object-Oriented Programming in MATLAB MATLAB for C/C++ Programmers MATLAB to C Made Easy
MATLAB Central
Open exchange for the MATLAB and Simulink user community
15
MATLAB Central
File Exchange
Download free files Over 10K available including functions, apps, examples, and models
MATLAB Answers
Ask programming questions Search 18K+ existing answers
Cody
Challenge and expand your knowledge of MATLAB
Blogs
Read commentary from MathWorks engineers who design, build, and support MATLAB and Simulink
16