Skip to main content

Section Submitting Work

Original Submissions.

Here are the guidelines for submitting work.
  • Every homework assignment will ask you to submit either a MATLAB function or a script.
  • See the function and script templates, below, for more information.
  • For each script or function, you must create a MATLAB formatted file with a .m extension.
  • You must name each .m file exactly as listed in the programming exercise.
  • Each .m file must be separately uploaded to the homework page on Canvas. No zip files.
  • The due date is specified on Canvas.

Late Submissions.

Late work will be accepted with a 10% deduction per day, up to 5 days late. Work submitted more than 5 days late will not be accepted.

Resubmissions.

Each assignment may be resubmitted once for partial credit (up to 80%). Resubmissions are due three days after graded work is returned. Additional rules:
  • Submit to the separate resubmission assignment page (not the original).
  • Programs not submitted on time originally are not eligible.
  • Incomplete or low-effort submissions are not eligible.
  • Only resubmit programs you have modified and want regraded.

Subsection Function Template

Each function you submit should use the following template:
Listing 1. Function Template
% =========================================================
%  lastname |
% firstname |
%        hr | 
%           |
%           |
% =========================================================
function [output1, output2] = function_name(input1, input2)
	
	% write the code for your function here

end
  • Header:
    • lastname: Enter your last name in lowercase. Remove any hyphens.
    • firstname: Enter your first name in lowercase.
    • hr: List any help you received and describe how you were helped.
  • The function_name must be named EXACTLY as specified in the problem.
  • The file name of your function should be function_name.m.
  • The number of input and output variables may need to be adjusted.
  • If a function has no output variables, then line 4 in the template becomes:
    function function_name(input_1, input_2)
    
  • If a function has no input variables, then line 4 in the template becomes:
    function [output_1, output_2] = function_name
    
  • Do not deviate from this template.
  • Use descriptive variable names throughout your code.

Subsection Script Template

Occassionally you will submit a self-contained script that uses helper functions to accomplish a task. In such cases, use the following template:
Listing 2. Script Template
% =========================================================
%  lastname |
% firstname |
%        hr | 
%           |
%           |
% =========================================================

% Write Script Commands Here

% =========================================================
% Helper Functions (if used above)
% =========================================================
function [output1, output2] = helper_1(input1, input2)
	% helper function 1 code here
end
function [output1, output2] = helper_2(input1, input2)
	% helper function 2 code here
end
	⋮
  • Header:
    • lastname: Enter your last name in lowercase. Remove any hyphens.
    • firstname: Enter your first name in lowercase.
    • hr: List any help you received and describe how you were helped.
  • The file name of your script will be specified in the problem.
  • The helper functions must go at the bottom of your script.
  • You may create your own helper functions, but some may be required as part of your submission.
  • Do not deviate from this template.
  • Use descriptive variable names throughout your code.