program of built-in factorial functioncalling


Program of built-in factorial function:

Calling this function yields similar result as the built-in factorial function:

>> fact(5)

ans =

  120

>> factorial(5)

ans =

  120

The recursive factorial function is a very common illustration of a recursive function. It is somewhat of a lame illustration, though, as recursion is not essential to find a factorial; a for loop can be just used as well in the programming (or, obviously, the built-in function in MATLAB).

 

Request for Solution File

Ask an Expert for Answer!!
Applications of MATLAB: program of built-in factorial functioncalling
Reference No:- TGS0175222

Expected delivery within 24 Hours