Let us worry about your assignment instead!

We Helped With This MATLAB Programming Homework: Have A Similar One?

More InfoMatlab Assignment Help Service

Short Assignment Requirements

I should give the details of my solutions and not just the final results.I must submit the Matlab code well commented as .m Matlab files. Also I must submit all figures and relevant plots as part of my work as a single file. So i must submit it as .m file and word document .

Assignment Description

Course Code: M106

Course Title: Introduction to MATLAB programming

Tutor Marked Assignment

Cut-Off Date: TBA                                                                                    Total Marks: 80


Question 1: 20 marks

Question 2: 16 marks

Question 3: 25 marks

Question 4: 19 marks


This TMA covers chapters 1, 2, 3, 4 and 5. It consists of four questions. Please solve all questions. You should give the details of your solutions and not just the final results. You must submit your Matlab code well commented as .m Matlab files. Also you must submit all figures and relevant plots as part of your work as a single file.

Plagiarism Warning:

As per AOU rules and regulations, all students are required to submit their own TMA work and avoid plagiarism. The AOU has implemented sophisticated techniques for plagiarism detection. You must provide all references in case you use and quote another person's work in your TMA. You will be penalized for any act of plagiarism as per the AOU's rules and regulations.


Declaration of No Plagiarism by Student (to be signed and submitted by student with TMA work):

I hereby declare that this submitted TMA work is a result of my own efforts and I have not plagiarized any other person's work. I have provided all references of information that I have used and quoted in my TMA work.

Name of Student:




Question 1: [20 marks]

In projectile motion, at any time (t), the projectile's horizontal (x) and vertical (y) displacement are:




where is the initial velocity and q is the initial launch angle.

{displaystyle heta }

Ali kicks the ball and ball does projectile motion with an initial launch angle (q) of 53° and its initial velocity is 10 m/s.


a) Make a plot of the displacement coordinates (x,y) between t = 0 and  t = 2s.    (7 marks)


b) Complete the plot with a title, grid, xlabel and ylabel.                                          (4 marks)


c) Using the Matlab commands ‘max’ and ‘find’ locate the maximum height it can reach then highlight this point with red stem (using ‘stem’ plot).                                             (7 marks)


d) Using the figure tool ‘Data cursor’, find the horizontal range (d) of the ball. Please note that the horizontal range is the horizontal distance it has travelled when it returns to its initial height (@ 0).                                                                                                            (1 mark)


e) Insert a text saying ‘The horizontal range (d)’ near the located data cursor point.

(You need to paste a snapshot of the figure as shown below)                                  (1 mark)






Question 2: [16 marks]

Write a program to compute the total payment for a salesman who is paid a basic salary and a commission, where             

Commission =                 7% of sales                                          if 300 < sales <= 500

                                    10% of sales + 50 $                 if sales is more than 500 $                 

The output of the script should include the basic payment, the computed commission and the total payment all with 2 significant figures.

Sample run#1:


Please enter the basic payment: 600

Please enter the sales: 700

Basic payment= 600.00

Commission = 120.00

Total Payment = 720.00


Sample run#2:


Please enter the basic payment: 600

Please enter the sales: 400

Basic payment= 600.00

Commission = 28.00

Total Payment = 628.00


Sample run#3:


Please enter the basic payment: 600

Please enter the sales: 100

Basic payment= 600.00

Commission = 0.00

Total Payment = 600.00



Question 3: [25 marks]

§ Write a function get_Data that reads and returns the data of a true-false exam of 5 questions for a class of 5 students, e.g. (TFTFT;TTTFF;FFTTT;TFTFF;FFFFF)            (2 marks)


§ Write a function get_Model to read and return the model answer of a true-false exam, e.g. (TFTTT).                                                                                                    (2 marks)


§ Write a function get_Result that accepts the answers of the students and model answer then finds and returns their results in 1D array. (The result is the number of correct answers that each student has got out of 5).                                            (5 marks)


§ Write a function delete that accepts the answers of the students and the result array to eliminate the student’s answer with the smallest mark together with his/her mark from the result array.                                                                                                       (6 marks)

§ Write a function print to print the full data of all remaining students.        (5 marks)


§ Write the main script that calls the above methods in their respective order.      

                                                                                                                        (5 marks)


Sample run:


Please enter the students' answer ['TTFFF';'TFTFT';'TTTTT';'FFFFF';'TFTFT']

Please enter the model answer 'TFFTT'


Student’s Data


TFTFT    3


FFFFF    2

TFTFT    3


Question 4: [19 marks]

Implement the following flowchart in Matlab using:

a)       for loop                                (5 marks)

b)      while loop                           (6 marks)

c)       not using loops at all       (5 marks)

d)      state in English what is the job

       of the flowchart                (3 marks)










“End of Questions”

Frequently Asked Questions

Is it free to get my assignment evaluated?

Yes. No hidden fees. You pay for the solution only, and all the explanations about how to run it are included in the price. It takes up to 24 hours to get a quote from an expert. In some cases, we can help you faster if an expert is available, but you should always order in advance to avoid the risks. You can place a new order here.

How much does it cost?

The cost depends on many factors: how far away the deadline is, how hard/big the task is, if it is code only or a report, etc. We try to give rough estimates here, but it is just for orientation (in USD):

Regular homework$20 - $150
Advanced homework$100 - $300
Group project or a report$200 - $500
Mid-term or final project$200 - $800
Live exam help$100 - $300
Full thesis$1000 - $3000

How do I pay?

Credit card or PayPal. You don't need to create/have a Payal account in order to pay by a credit card. Paypal offers you "buyer's protection" in case of any issues.

Why do I need to pay in advance?

We have no way to request money after we send you the solution. PayPal works as a middleman, which protects you in case of any disputes, so you should feel safe paying using PayPal.

Do you do essays?

No, unless it is a data analysis essay or report. This is because essays are very personal and it is easy to see when they are written by another person. This is not the case with math and programming.

Why there are no discounts?

It is because we don't want to lie - in such services no discount can be set in advance because we set the price knowing that there is a discount. For example, if we wanted to ask for $100, we could tell that the price is $200 and because you are special, we can do a 50% discount. It is the way all scam websites operate. We set honest prices instead, so there is no need for fake discounts.

Do you do live tutoring?

No, it is simply not how we operate. How often do you meet a great programmer who is also a great speaker? Rarely. It is why we encourage our experts to write down explanations instead of having a live call. It is often enough to get you started - analyzing and running the solutions is a big part of learning.

What happens if I am not satisfied with the solution?

Another expert will review the task, and if your claim is reasonable - we refund the payment and often block the freelancer from our platform. Because we are so harsh with our experts - the ones working with us are very trustworthy to deliver high-quality assignment solutions on time.

Customer Feedback

"Thanks for explanations after the assignment was already completed... Emily is such a nice tutor! "

Order #13073

Find Us On

soc fb soc insta

Paypal supported