Examples of Programming in Matlab - TECHNICAL BRIEF...

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

View Full Document Right Arrow Icon
Examples of Programming in M ATLAB ® TECHNICAL BRIEF
Background image of page 1

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

View Full DocumentRight Arrow Icon
The M ATLAB ® Environment MATLAB integrates mathematical computing, visualization, and a powerful language to provide a flexible environment for technical computing. The open architecture makes it easy to use MATLAB and its companion products to explore data, create algorithms, and create custom tools that provide early insights and competitive advantages. TECHNICAL BRIEF 2 TABLE OF CONTENTS Introduction to the MATLAB Language of Technical Computing Comparing MATLAB to C: Three Programming Approaches to Quadratic Minimization Application Development in MATLAB: Tuning M-files with the MATLAB Performance Profiler 3 4 9
Background image of page 2
Introduction to the MATLAB Language of Technical Computing The MATLAB language is particularly well-suited to designing predictive mathematical models and developing application-specific algorithms. It provides easy access to a range of both elementary and advanced algorithms for numeric computing. These algorithms include operations for linear algebra, matrix manipulation, differential equation solving, basic statistics, linear data fitting, data reduction, and Fourier analysis. MATLAB Toolboxes are add-ons that extend MATLAB with specialized functions and easy-to-use graphical user interfaces. Toolboxes are accessible directly from the MATLAB interactive programming environment. MATLAB employs the same language for both interactive computing and structured programming. The intuitive math notation and syntax allow you to express technical ideas just as you would write them mathematically. This familiar style and flexibility make exploration and development with MATLAB very efficient. The built-in math algorithms, optimized for matrix and vector calculations, allow you to increase efficiency in two areas: more productive programming and optimized code performance. The resulting time savings give you fast development cycles as well as execution speeds from within the MATLAB environment that are comparable to compiled code. The two examples on the following pages illustrate MATLAB in use: 1) The first example compares MATLAB to C using three approaches to a quadratic minimization problem. 2) The second example describes one user’s application of the M-file performance profiler to increase M-file code performance. These examples demonstrate how MATLAB’s straightforward syntax and built-in math algorithms enable development of programs that are shorter, easier to read and maintain, and quicker to develop. The embedded code samples, developed by MATLAB users in the MATLAB language, illustrate how MATLAB application specific toolbox functionality can be easily accessed from the MATLAB language.
Background image of page 3

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

View Full DocumentRight Arrow Icon
Image of page 4
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 12

Examples of Programming in Matlab - TECHNICAL BRIEF...

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