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)
Reverse the vector
Energy of a photon
Sum of diagonal of a square matrix
Change the sign of even index entries of the reversed vector
Min of a Matrix
Is it column vector?
Find out value of polynomial at different value.
Find out magnitude of vector
Append two matrix as shown below example
Find 10's complement
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