Check that number is whole number
Say x=15, then answer is 1.
x=15.2 , then answer is 0. http://en.wikipedia.org/wiki/Whole_number
test suite is poor
function y = your_fcn_name(x)
if (~isinf(x) && fix(x)==x)
Back to basics 8 - Matrix Diagonals
Getting logical indexes
The Answer to Life, the Universe, and Everything
Sum of odd numbers in a matrix
Convert decimal to hex as shown in test cases
Find out output of following expression
Determine the mean of matrix
Find the mode of the given input
Find out value of polynomial at different value.
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