develop a Matlab solution and write a corresponding report
Choose ONE of the following problems, develop a Matlab solution and write a corresponding report. Your Matlab solutions need to use M-files, user-defined functions, arrays/matrices, control structures, plotting and file input/output.
Problems:
- Sorting Algorithms
Research different sorting algorithms, then design and implement a Matlab programme to demonstrate how different algorithms work. Minimum two algorithms, maximum four algorithms, are required. Built in Matlab sort function or existing web solutions are not allowed.
- Play LOTTO
Research Lotto game rules (https://www.national-lottery.co.uk/), then design and implement a Matlab programme to generate several sets of Lotto numbers according to the amount of money specified.
- Ballistic Problem
Research the classic Ballistic problem, then design and implement a Matlab programme to illustrate how the distance travelled horizontally (as well as vertically) changes against velocity at launch and launch angle using 3D plot, under the conditions of on the Earth and on the Moon.
- Oil Tank Pressure Problem
Consider a upright cylindrical oil tank, research on the pressure calculation, then design and implement a Matlab programme to illustrate how the pressure at the bottom of the tank changes against the cross section area of the tank and oil level in the tank.
- Your Own Problem
You can also propose your own problems; in that case, you will need to send me a half-a- page problem title and summary for approval.
Notes: Bonus points if you can implement the Matlab graphical user interface (GUI) in your code.
Report:
- The report should contain the introduction, the design of your Matlab code, i.e. flow chart, results and discussions, as well as Appendix (for your Matlab code). This assignment will contribute 20% to the total mark of the module. The report should show a good understanding of the principles and technical background of the topic, and should be no more than 1600 words.