0% found this document useful (0 votes)
12 views11 pages

2022-23 Introduction To Matlab

Uploaded by

DOOAMADAA
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
12 views11 pages

2022-23 Introduction To Matlab

Uploaded by

DOOAMADAA
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 11

LC Engineering Materials

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

LC Engineering Materials - Introduction to Matlab 3


This semester
• In this semester you will learn how to perform calculations or process,
analyse and present data using Matlab
• We will apply Matlab to topics from a number of first year modules
• By the end of the semester you will hopefully be comfortable to use Matlab
as a tool to carry out computational and data-intensive tasks

LC Engineering Materials - Introduction to Matlab 4


Timetable
• You have been allocated to one of two groups
• Group 1 has computer labs in Week 2, 4, 6, and 8
• Group 2 has computer labs in Week 3, 5, 7, and 9
• All computer practicals are in person and will take place in the CTL e-lab
(G12/22)
• Attendance is compulsory and you have to attend in your allocated session
(either even weeks or odd weeks), as space is limited
• If you wish to attend during a week you are not allocated to, please come to
the front of the room, and we will find you a seat if one is available
• There will be a test in Week 12 that will determine the mark for the Matlab
component of Engineering Materials

LC Engineering Materials - Introduction to Matlab 5


Topics
• Week 2/3: Introduction to Matlab
• Week 4/5: Using Matlab to present and analyse experimental data
• Week 6/7: Using Matlab to handle matrices and complex numbers
• Week 8/9: More Matlab programming
• Week 12: Matlab test

LC Engineering Materials - Introduction to Matlab 6


Assessment
• During Week 2/3 you will cover the basics of Matlab, as well as how the
course is delivered and assessed within Canvas
• During the subsequent computer labs, you will have access to formative
assessments carried out either via Matlab Grader or using Canvas Quizzes
• The formative assessment does not contribute to the module mark – you will
get feedback on your submission, which will help you understand how well
you are doing.
• In some cases, you will have to meet a threshold in order to progress to the
next bit of content.
• In Week 12 there will be a Matlab test
• The test constitutes 20% of the mark for the Engineering Materials module

LC Engineering Materials - Introduction to Matlab 7


Programming in Matlab
• The best way is to download Matlab to your personal machine
• Follow the instructions here at the IT services knowledgebase article
KB13246
• You can look this up using the link https://kb.bham.ac.uk/KB13246

• Next best is for you to use the Matlab web interface


• For this, you will need a Mathworks account using your university email
address as username
• This will be of the form [email protected]

LC Engineering Materials - Introduction to Matlab 8


Matlab Grader Workspace
• If you cannot download Matlab or use the web interface or use the Matlab
application in the computer clusters, you can use the Matlab Grader
Workspace
• This is available in the Week 2/3 content
• In order to execute any code, you need to press ‘Run Script’
• Matlab Grader will be used to submit some of the formative assignments,
and will also be used to run the Matlab test – I would encourage you to
familiarise yourself with Matlab grader
• However, it may be easier/better to use the full Matlab application or Matlab
web interface

LC Engineering Materials - Introduction to Matlab 9


Today and future weeks
• The content for Week 2/3 has been published
• Content for future weeks will be published at the appropriate time
• Work through the pages and formative assessment sequentially
• If you have questions, raise your hand, and a teaching assistant will come to
help
• Review and explore the material outside the computer practical to improve
your skills and ensure you make use of the computer practical

LC Engineering Materials - Introduction to Matlab 10


THANK YOU!

LC Engineering Materials - Introduction to Matlab 11

You might also like