2022-23 Introduction To Matlab
2022-23 Introduction To Matlab
Introduction to Matlab
Professor Alessandro Mottura
School of Metallurgy and Materials
[email protected]
@Ale_Mottura
C/C++ vs Matlab
• In the first semester you learned how to program using C/C++
• C/C++ is a very powerful computer language which allows the user to
perform calculations and control computer-based systems very flexibly
• It is a compiled language: it needs to be compiled into assembly code by a
compiler. The compiled binary executable can then be run to perform the
prescribed tasks.
• Sometimes the power of C/C++ is not required for many tasks that we need
to perform in Engineering
• It is often easier to use an interpreted language instead: this is code that is
interpreted on-the-fly by interpreter software to run a series of
computational tasks
• Matlab is one of these interpreted languages
LC Engineering Materials - Introduction to Matlab 2
Introduction to Matlab
• An interpreted language is often much simpler to use: no need for memory
allocation, easily portable, built-in functions
• Matlab is a very successful interpreted language maintained and sold by
Mathworks
• It requires a license, and you have use of the student license as part of being
a student at the University of Birmingham
• Matlab has a massive userbase, particularly in Engineering education and
within the Education sector
• There are other interpreted languages such as Python