Professional Documents
Culture Documents
T1 Introduction
T1 Introduction
Adrian Pearce
(adrianrp@unimelb.edu.au)
http://compumedicsneuroscan.com/using-
matlab-curry/
• Education:
– B. Sc. (First Class Honours) in Computer Science
• University of Melbourne
– PhD in Computer Science (Specialization: Artificial Intelligence)
• Curtin University of Technology
• Academic Experience:
– Academic in the department from 2000 – to date
– Teaching
• Computer Graphics, Autonomy & AI Planning, Theory of Computer
Science, Logic Programming
– Research Interests
• Artificial Intelligence
• Automated Planning
• Optimisation
• Reasoning about Actions & AI Decision Making
Getting help
• Consultation:
– Regular consultation: Wednesday 3 pm – 3:45 pm
• Office: 6.20 Doug McDonell (DMD) Building
– Additional consultation by appointment
• Email: adrianrp@unimelb.edu.au
Objectives
References
Overview
• Introduction to MATLAB
• Input/output in MATLAB
Introduction to programming
Temperature VT
Transducer
Alarm AOUT
Alarm
Ch Generator
Pressure VP
Transducer
Chemical Process
VTR VPR
Analog Digital
Signal v(t) Signal
Sampler Quantizer Encoder
g - gravitational constant
m - mass
c - drag coefficient (depends
on the design of the parachute)
Click to edit
Example: Parachute
Master title
design
styleproblem.
• Problem 2: Design a parachute that attains a given
velocity v, after t seconds
• Computer programs:
From: https://en.wikipedia.org/wiki/Von_Neumann_architecture
Engineering System Design 2 22 Melbourne School of Engineering
Programming for Engineering System Design
Click to edit
Computer Software,
Master title
Hardware
style & Operating System
• Input-output Devices:
– used to communicate with the users and other systems
Click to edit
Computer Software,
Master title
Hardware
style & Operating System
Programming Languages
Introduction to MATLAB
• A basic instruction:
disp(‘Hello World!’);
• Start MATLAB
% HelloWorld.m
% This program writes a message to the console
% Version: 1.0 Date: 27/02/2014
% Author: Shanika Karunasekera(karus@unimelb.edu.au)
>> HelloWorld
Hello world!
>> InputDisplay
Enter a number: 3
3
>> InputDisplay
Enter a number: 3.5
3.5000
Engineering System Design 2 42 Melbourne School of Engineering
Programming for Engineering System Design
>> InputDisplay
Enter a number: hello
Error using input
Undefined function or variable ’hello’.
Error in InputDisplay (line 8)
a = input(’Enter a number: ’);
Enter a number:
>> InputDisplay
Enter a character string : 3.5
Second input argument - tells the
3.5
computer to accept any character
String not just a number
>> InputDisplay
Enter a character string : hello
hello
Engineering System Design 2 46 Melbourne School of Engineering
Programming for Engineering System Design
>> FormattedOutput
Enter a number: 3
Enter a character string: hello
The number you entered is: 3
The string you entered is: hello
>> a = 3;
>> b = ‘hello’;
>> c = 4.2365
>> fprintf(’The floating point number is equal to
%f\n’, c);
• If you did not know the name of the command, just type
help to get a categorized list of commands.