Return double factorial
n(n-2)...(5)(3)(1), n>0, odd
n!! = n(n-2)...(6)(4)(2), n>0, even
1 , n = -1, or n = 0
6!! = (6)(4)(2) = 48
Neither n = -1, nor n = 0 are tested.
Back to basics 21 - Matrix replicating
Return elements unique to either input
Compute a dot product of two vectors x and y
Matlab Basics II - Max & Index of Max
Write a function man that takes a row vector v and returns a matrix H as follows..
Modular multiplicative inverse
Find the biggest digit in a matrix
Happy Free Wednesday!
Duration of a trip in minutes
Determine if input is a valid AHP evaluation matrix
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Contact your local office