Beruflich Dokumente
Kultur Dokumente
Lab Session – 2
Getting Started
(MATLAB basics)
MATLAB
2007-08 Deaprtment of Mechanical Engg UET - Lahore 2
MATLAB 7.0 (R-14)
• System requirements
– IntelR Pentium- 4 CPU
– 512 MB memory (1.0 GB recommended)
– 64MB VGA buffer (128 MB recommended)
– 1024x768 / 256 - color 17” Display
– Minimum 2.0 GB HDD installation space
– Win XP Pro SP - 2 / Win 2k SP - 3 / Win Vista
• Any typing error can be corrected before the [Enter] key is pressed.
Use → or ← keys to make changes / correct
spelling mistakes etc.
When the line is correct, just press [Enter] to send the command to
MATLAB.
>>pi
3.142857143
>>pi;
Use semicolon (;) to suppress immediate
display of the result.
>>help logo
1. quantities in brackets
2. powers 2 + 3^2 = 2 + 9 = 11
3. * /, working left to right (3*4/5=12/5)
4. + -, working left to right (3+4-5=7-5)
>> 3 – 2 ^ 4
ans =
- 13
>> ans * 5
ans =
- 65