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.
Find common elements in matrix rows
Return elements unique to either input
Find the sides of an isosceles triangle when given its area and height from its base to apex
Basics: counting digits of a number irrespective of the sign
Find the complement of a number in binary
Find two triangular numbers whose sum is input.
Decrypt a secret message!
Lunar Arithmetic (Multiplication)
'5*3' copy character 3 - five times
Good Morning :)
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