Matrix rotation as per given angle
Given a user defined matrix and angle of rotation, rotate the elements of output matrix as clockwise or anti-clockwise. Angle wi...
3年以上 前
解決済み
Matrix to column conversion
Given a matrix of any size, convert it into a column vector.
e.g A=[10 20 30;
40 50 60]
then,
B = [10;
40;
...
Beginner's Problem - Squaring
Try out this test problem first.
Given the variable x as your input, square it by two and put the result in y.
Examples:
...
3年以上 前
解決済み
Test
Answer the question and the correct answer write in vector. Only one answer is correct.
1a Yes
1b No
1c No
1d No
...
3年以上 前
解決済み
Test of Quiz
Answer the questions and write in vector. Only one answer is correct.
The founder of fuzzy logic is
1a) D. Golberg
1b)...
3年以上 前
解決済み
Factorial Numbers
Factorial is multiplication of integers. So factorial of 6 is
720 = 1 * 2 * 3 * 4* 5 *6
Thus 6 factorial = factorial(720)....
Back to basics - array operations
Without performing actual arithmetic operations on arrays, return feasibility of operation as true or false. True if given opera...
3年以上 前
解決済み
Cumulative difference
Given an array, return the cumulative difference.
Example
a = [ 1 3 5 7 ]
cumdiff = [ 1 2 1 -2 ]
3年以上 前
解決済み
Matrix multiplication across rows
Given matrix m, return matrix n such that, rows of n are result of multiplication of the rows of the input matrix
Example
...
Better Index Number
Let's say you want to save many, many files and append these files with a certain sortable index number. As you probably know, y...
3年以上 前
解決済み
Returning a "greater than" vector
Given a vector, v, return a new vector , vNew, containing only values > n.
For example:
v=[1 2 3 4 5 6]
n=3
vNew =...