cal_factorial

cal_factorial - % % FUNCTION NAME: Very brief purpose of...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
function result_var = cal_factorial(num_input) %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % Programmer(s) and Purdue Email Address(es): % 1. login@purdue.edu % % Section #: % % Assignment #: % % Academic Integrity Statement: % % I/We have not used source code obtained from % any other unauthorized source, either modified % or unmodified. Neither have I/we provided access % to my/our code to another. The project I/we am/are % submitting is my/our own original work.
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: % % FUNCTION NAME: Very brief purpose of function on this line % INPUTS: List them below one line per input argument % % % OUTPUTS: List them below line per output argument % % % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% result_var = 1; for counter = 1:1:num_input result_var = result_var * counter; fprintf('The pass is %i and the result is %i',counter,result_var); end end...
View Full Document

Ask a homework question - tutors are online