Smith numbers
Return true if the input is a Smith number in base ten. Otherwise, return false. Read about Smith numbers at <http://en.wikipedi...
11年弱 前
解決済み
Four quadrant inverse tangent function.
Create a function that returns an array P the same size as X and Y containing the element-by-element, four-quadrant inverse tang...
11年弱 前
解決済み
Local Minima
Given a vector of data x, find the values of local minimum that is smaller than its neighbor elements.
For example, if
x =...
11年弱 前
解決済み
Perl 4: unshift
_This is part of a series of perl function which were very helpful for many perl programmers. Could you implement it in Matlab?_...
11年弱 前
解決済み
A matrix of introverts
You are given a matrix full of numbers who happen to be very shy. Write a MATLAB function that will put a square of zeros aroun...
11年弱 前
解決済み
Power The Product
EXAMPLE:
INPUT x=10 & y=10
OUTPUT z=1000000
or,
INPUT x=2 & y=3
OUTPUT z= 216
you just need to calculate the product first...
row removal
Consider a matrix and remove the first row of the matrix.
11年弱 前
解決済み
write an algebraic expression
An electrician charges $45 per hour and spends $20 a day on gasoline. Write an algebraic expression to represent his earnings fo...