free

© All Rights Reserved

0 views

free

© All Rights Reserved

- 8100 Evaluation and Feedback
- AnswerT1
- Leadership Profile
- Work With a Mentor
- Book Title 2
- chapter_2
- chapter_1
- Home Work1
- 5 Ways to Determine Cost Production for Product
- Tutorial 1
- ITR011 Application Form
- Account Types Names
- Answer Tutorial Diodes
- Answer Tutorial 2 Transistor and Its Apllication
- Climate Change
- First Draft
- New Microsoft Word Document
- Kancil n Buaya
- lab resu
- New Microsoft Word Document

You are on page 1of 3

Department of Mechanical and Manufacturing Engineering

Assignment 1

Instructions:

1. Assignment to be done INDIVIDUAL only.

2. Follow the sample printed guideline for the correct format.

3. Submit hard copy only with the following instruction:

a) Written answer Question 1, and

b) Printed answer (Print screen, then paste and crop both script (if required) and

output in Command Window) Question 2.

4. Command input in Command Window must always starts with name, matrics number,

group and clock for Question 2.

5. Dateline of submission: 5th May 2015, Monday, 5:00pm.

______________________________________________________________________________

Guideline:

a) Give the MATLAB syntax for these mathematical calculations:

i)

(3x) 3

5e 3

2

[1 marks]

ii)

35 43

53 145

[1 marks]

iii)

8 log10 (7) + ln 8

[1 marks]

iv)

8 cos 1 (7)

[1 marks]

v)

5e ( 2.1) 33

[1 marks]

b) Predict the MATLAB output of writing the below code in Command Window:

i)

x = 1 * 3 * 7

[1 marks]

ii)

[1 marks]

iii)

x = linspace(5, 20, 7)

[1 marks]

iv)

x = [(3:6) 3 7 3]

[1 marks]

v)

eye(4)

[1 marks]

The volume of a cylinder is r2h. Give a script with input command where user can

input radius, r and height, h to find volume. Generate a sample output command. If r

= 3 cm and h = 7 cm, solve the volume of the cylinder?

(5 marks)

b) Type this matrix in Matlab Command Window and use Matlab to answer the following

questions:

X=

3

7

3

7

8

6 -2

5 12

7

6

9

0 -2 -6

11 18

6

6

4

a.

b.

c.

columns of X.

(3 marks)

Distinguish 2 x 5 array b consisting of all elements in the third through fourth

rows of X.

(3 marks)

Distinguish 2 x 3 array c consisting of all elements in the second through third

rows and second through fourth columns of X.

(3 marks)

c) The surface area of a sphere is 4r2. Solve the surface area of a sphere with a radius of 20

cm.

(3 marks)

d) Use MATLAB to evaluate

at = 5.

8 3 9 2 7

10 3 + 5 2 3 7

(3 marks)

- 8100 Evaluation and FeedbackUploaded byBong Kuek Kong
- AnswerT1Uploaded byBong Kuek Kong
- Leadership ProfileUploaded byBong Kuek Kong
- Work With a MentorUploaded byBong Kuek Kong
- Book Title 2Uploaded byBong Kuek Kong
- chapter_2Uploaded byBong Kuek Kong
- chapter_1Uploaded byBong Kuek Kong
- Home Work1Uploaded bykixyo
- 5 Ways to Determine Cost Production for ProductUploaded byBong Kuek Kong
- Tutorial 1Uploaded byBong Kuek Kong
- ITR011 Application FormUploaded byBong Kuek Kong
- Account Types NamesUploaded byBong Kuek Kong
- Answer Tutorial DiodesUploaded byBong Kuek Kong
- Answer Tutorial 2 Transistor and Its ApllicationUploaded byBong Kuek Kong
- Climate ChangeUploaded byBong Kuek Kong
- First DraftUploaded byBong Kuek Kong
- New Microsoft Word DocumentUploaded byBong Kuek Kong
- Kancil n BuayaUploaded byBong Kuek Kong
- lab resuUploaded byBong Kuek Kong
- New Microsoft Word DocumentUploaded byBong Kuek Kong
- chapter_2Uploaded byBong Kuek Kong
- AssignmentUploaded byBong Kuek Kong
- Control Volume3Uploaded byBong Kuek Kong
- Chapter 01 Introduction TutorialUploaded byBong Kuek Kong
- My Childhood Dream.docxUploaded byBong Kuek Kong
- Ideal SchoolUploaded byBong Kuek Kong
- New Microsoft Office Word DocumentUploaded byBong Kuek Kong