MATLAB programs (Numerical Methods)

profilelyod_matlab
bonus-programming-assignment-questions.pdf

ENGR-391/1: Bonus Program Assignment (5% total) Due on June 27, 2014

There are 10 problems for the Bonus program assignment, each for 0.5 marks. You are free to do all or

as many as you may want to. The total score will be added accordingly.

The dead line for submission is on June 27 before the date changes to 28. No submission will be

considered beyond June 27.

All submission must be done electronically (mfiles that can be run as they are to produce the required

results.

Note:

Name your files/folder with an underscore extension and you ID number ( filename_ID). Moreover, use a display command in Matlab script to display your ID number as the code is run in Matlab window. (example: display(‘ID_-----‘))

Q-1:

Hint:

ENGR-391/1: Bonus Program Assignment (5% total) Due on June 27, 2014

Q-2:

ENGR-391/1: Bonus Program Assignment (5% total) Due on June 27, 2014

Q-3:

Q-4:

ENGR-391/1: Bonus Program Assignment (5% total) Due on June 27, 2014

Q-5:

Q-6: Write a program in Matlab for the following:

ENGR-391/1: Bonus Program Assignment (5% total) Due on June 27, 2014

Q-7: Write a program in Matlab for the following:

Hint: The second derivatives of ‘natural spline’ at the first and the last points are zero.

Should be able to produce the following plot:

ENGR-391/1: Bonus Program Assignment (5% total) Due on June 27, 2014

Q-8: Write a program in Matlab for the following least-square solution:

ENGR-391/1: Bonus Program Assignment (5% total) Due on June 27, 2014

ENGR-391/1: Bonus Program Assignment (5% total) Due on June 27, 2014

Q-9: Write a program in Matlab for the following:

Hint: the program should display the table shown above.

Q-10: Write a program in Matlab for the following: