Hello, dear friend, you can consult us at any time if you have any questions, add WeChat: THEend8_
CE142 MATHEMATICS FOR ENGINEERS
LAB TEST
Submit electronically via FASER
Plagiarism
You are reminded that this work is for credit towards the composite mark in CE142 and that the work you
submit must therefore be your own. Any material you make use of, whether it is from textbooks, the web,
your own previous submissions or any other source, must be acknowledged in your report, and the extent
of the reference clearly indicated.
Please see your handbook for rules regarding the late submission of assignments.
Submission instructions and assessment:
This lab test counts for 15% of the overall mark for the module.
The lab test consists of four (4) exercises that must be solved through mathematical working on
paper and suitable MATLAB code.
The MATLAB code for all exercises (answering all questions therein) should be written and saved
in a MATLAB M-file (*.m) or Live Code File Format (*.mlx) created with MATLAB’s editor.
Clearly indicate (using comments) which exercise and question each piece of code corresponds to.
Use the following convention to name your MATLAB scripts:
LT2_RegistrationNumber_Ex1.m ( or .mlx)
Your MATLAB scripts should run without producing any errors when called from the MATLAB
command prompt and should produce the required output (figures, printouts, etc.)
Where required, mathematical workings and justifications should be included in a single Word or
PDF report. Make sure you state clearly in your report document which exercise and question each
piece of mathematical working corresponds to. State your registration number on the first page of
your report. Do not include MATLAB code or MATLAB figures in the report. Use the
following convention to name your Word or PDF file: LT2_RegistrationNumber.docx (.pdf)
Use Word Equation Editor, Latex or any other editor of your choice that can export a PDF to write
mathematical equations. Handwritten scanned solutions will also be accepted. However, make sure
that the handwriting is legible and the scans are of good quality. Points will be deducted if your
answers are illegible.
Provide adequate mathematical justification for all your answers. Points will be deducted for
failing to provide adequate mathematical reasoning even for answers that are otherwise
correct.
Please do not zip the MATLAB script and the report when uploading to FASER.
This lab test is to be done individually. Every student should submit their own report and MATLAB
code. Automatic and manual plagiarism checks will be applied.
Your mark (with written feedback) will be returned to you within four weeks in the term time.
Lab Test 2
Exercise 1
Q1. Write a custom MATLAB function which takes as input/argument a complex
number and returns 5 outputs (in this order): the real part (̅), the imaginary
part (̅), the modulus |̅| and the angle with the x-axis (̅) of its complex
conjugate ̅, as well as the angle , ̅̂ (i.e., the angle between and ̅). The function
should also produce a plot graphically illustrating and ̅, on a complex plane.
Include in your report the Maths working/formulas that your MATLAB function
implements for the different outputs.
Hint1: Make sure your code produces correct results for input complex numbers
of every quadrant of the complex plane.