In this problem, simply return 1 if a supplied number is Munchhausen narcissistic or 0 if not.
153 is narcissistic but not a Munchhausen number
NOTE: the convention is that 0^0=0
Wikipedia link: https://en.wikipedia.org/wiki/Munchausen_number
test cases 5 and 7 seem to not be Narcissistic (https://oeis.org/A005188), but they are still marked as true.
http://oeis.org/A046253 and https://en.wikipedia.org/wiki/Munchausen_number
Remove any row in which a NaN appears
Determine the number of odd integers in a vector
02 - Vector Variables 5
Create a two dimensional zero matrix
Produce a cosine wave
Create numeric palindromes and their square roots
is the number happy?
Convert a Cell Array into an Array
remove nans fast
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