Counting candies
In a classroom of |'n'| children, every even numbered child gets one big candy and every odd numbered child gets two small candi...
約8年 前
解決済み
Church Encoding
Church encoded numeral is a function which takes two arguments _f_ and _x_ and applies _f_ to _x_ several times.
For example,...
約8年 前
解決済み
Flipping a Matrix
Flipping matrix up and down.
If a central row is exists, leave it, and flip remaining rows.
Example
Mat = magic(3)
...
約8年 前
解決済み
Where is the number that you want to find?
For a given matrix A, find where the input number x appears.
Do this task by returning the vector which contains the row and th...
約8年 前
解決済み
Pairwise column flip
Given matrix *M_in*, flip every pair of columns. So if *M_in* is
1 2 3 4
1 2 3 4
then *M_out* is
2 1 4 3
2 1 4 3
...
Is input the global variable z?
When the input is certainly not the global variable |z|, your function must return |false|. Otherwise return |true|. All input...
約8年 前 | 0 | 5 個のソルバー
解決済み
0, 2, 0, -2, 0, 2, 0, -2, ...
Generate the first n terms of a periodic sequence defined as
f(x) = 0, 2, 0, -2, 0, 2, 0, -2, ..., for x = 1, 2, 3, 4, 5, 6...
Increment up an input vector
Increment up an input vector by adding the indices to the vector values. For example, if an input vector is [3, 2, 6, 1, 6], the...
Sum the rows
Sum the rows of the given matrix.
Example
x = [ 1 2
3 4 ]
y = [ 3
7 ]
約8年 前
解決済み
find the 'M'
for an input x, return 1 at the location of the letter 'M'
約8年 前
解決済み
Negative without '-'
Simple: return a negative number without using the '-' sign.
Thanks to Problem <https://www.mathworks.com/matlabcentral/cody/...
約8年 前
解決済み
Count the Digits in the Box
In this problem you must provide an accurate census of all the digits inside a given box. The problem is complicated by the fact...
約8年 前
解決済み
determine if
determine if the elements of a matrix is a nan and return true
Negative Infinity
Round the given array a towards negative infinity.
約8年 前
解決済み
Find the binary code
Given a sinusoidal signal, create a function that returns the binary code of a quantized value. The function takes the bit lengt...