0% found this document useful (0 votes)
9 views5 pages

Spring 2025 - MTH643 - 1

This document outlines the details for Assignment 1 of the MTH643 course, due on May 19, 2025. It includes instructions for students on how to complete the assignment using MATLAB, including creating scripts, plotting functions, and submitting their work. Students must adhere to specific formatting and submission guidelines to avoid receiving zero marks.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
9 views5 pages

Spring 2025 - MTH643 - 1

This document outlines the details for Assignment 1 of the MTH643 course, due on May 19, 2025. It includes instructions for students on how to complete the assignment using MATLAB, including creating scripts, plotting functions, and submitting their work. Students must adhere to specific formatting and submission guidelines to avoid receiving zero marks.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 5

MTH643 Assignment 1 - Due Date: May 19, 2025, Spring 2025

(Please go to Page 2 for the instructions and the Question of this Assignment.)

Student’s Answer Sheet

Student ID:
Digits of your Student ID:

Paste script file in this box. [18 marks]

Paste output figures in this box. [12 marks]

Assignment # 01 MTH643 (Spring 2025)

Total Marks: 30 Due Date: May 19, 2025


Page 1 of 5
MTH643 Assignment 1 - Due Date: May 19, 2025, Spring 2025
DON’T MISS THESE: Important instructions before attempting the solution and submission of this
assignment:
 Lectures 2-5 are covered in Assignment 1.
 All your answers, such as name, student ID, and MATLAB script and output figure files must be
put inside the allocated boxes (fields) provided in the Student’s Answer Sheet.
 Only the Student’s Answer Sheet will be marked. So, you may choose to only upload your
Student’s Answer Sheet. Answers written outside of the boxes may get Zero mark.
 Any copied work, for example, script and output figure of some other student’s ID will get Zero
mark.
 Assignment 1 is due on May 19, 2025.
 Properly Upload the Student’s Answer Sheet completed in MS Word format on LMS as per the
previous practice.

QUESTION: OPEN MATLAB SOFTWARE AND PERFORM THE FOLLOWING STEPS:


a. Create a new script in MATLAB software and save it with your student ID. For example, if
the ID is BC210345678, the name of the script file will be BC210345678.m
b. Split the last 6 digits of your student ID into two 3-digit numbers. For example, if the ID is
BC210345678, split it as 345 and 678.
c. Assign these numbers to variables a and b respectively.
d. Find the sum of the digits of a and b, (i.e. 3+4+5, 6+7+8) and assign them to variables m
and n. (e.g. m=12, n=21)

Question # 1

Create a function using the above variables in a form

y=a .sin ( mx ) +b . cos ⁡(nx )

and plot the function using plot command over the Interval [−2 π , 2 π ]

Customize your plot with:

 Red dashed line


 Line width of 2
 X-axis label: x
 Y-axis label: y
 Title: "Student ID = [Your ID]"

Question # 2

Plot the following parametric curve using fplot over the Interval [−2 π , 2 π ]
x (t )=cos ⁡( mt ), y (t)=sin ⁡( nt)

Customize your plot with:


 Green line
 Line width of 1.5
 Title: "Parametric Curve using fplot-[Your ID]"

Question # 3

Plot the 3D surface defined by

Page 2 of 5
MTH643 Assignment 1 - Due Date: May 19, 2025, Spring 2025
z=sin ( mx ) +cos ⁡(ny )

Use the domain −5 ≤ x ≤ 5 ,−5 ≤ y ≤ 5

Customize the output graph with:

 Title: "Surface: z = sin(mx) + cos(ny) - [Student ID]"

AND THEN:
 Take a screenshot of the script file; copy and paste the screenshot in the box titled: Paste
script file in this box. [18 marks]
 Take a screenshot of the output figure file; copy and paste the screenshot in the box
titled: Paste output figures file in this box. [12 marks]

VERY IMPORTANT NOTE:


 The screenshots must be taken from MATLAB software. These screenshots must be
taken along with their MATLAB headings and boundaries. See the sample below and
your screenshots must be the same as provided in the sample below.
 Any student who will copy the commands from script file and saving the jpg of output
figure and paste these in the answer boxes instead of pasting the screenshots will be
awarded zero mark.

A sample of Student’s Answer Sheet:


 Please find below a sample Student’s Answer Sheet for a dummy Student ID: MC210345678.
 You will do all your work with your actual student ID. Otherwise; you may get Zero mark.
 Any student using this sample as his/her answer will also get Zero mark.

Page 3 of 5
MTH643 Assignment 1 - Due Date: May 19, 2025, Spring 2025
Student’s Answer Sheet

Page 4 of 5
Student ID: MC210345678
MTH643 Assignment
Digits of your Student1ID:
- Due1Date:
3 May
0 19,22025,
1 2 3 4 Spring
9 2025

Paste script file in this box. [6 marks]

Paste output figure file in this box. [4


marks]

Page 5 of 5

You might also like