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)
Magic is simple (for beginners)
Find out value of sine given by degree.
Number of Even Elements in Fibonacci Sequence
Find out of matrix transpose Complex conjugate
Find out characteristics equation of given matrix.
Element by element multiplication of two vectors
Replace odd number in given matrix by zero
Try and Catch Simple Example
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