Feeds
已解决
Calculate inverse matrix in square matrix
A=eye(3) Calculate inverse matrix of given input. B=function(A) ans = 1 0 0 0 1 0 ...
8 years 前
已解决
Calculate some equation
Using given inputs x and z, make two outputs that are y1 = (xz)/(x/z)^2 + 14x^2 - 0.8z^2 y2 = x^z - z^x + (x/z)^2 - (z/x...
8 years 前
已解决
Change matrix to vector
Vector is a matrix whose size is 1 x n or n x 1. Change matrix to vector. x = 4 3 5 1 ...
8 years 前
已解决
Write a function man that takes a row vector v and returns a matrix H as follows..
Write a function called man that takes a row vector v as an input and returns a matrix H whose first column consist of the eleme...
8 years 前
已解决
Get all corner elements from a matrix where dimension of matrix is always equal to or greater than 2.
if a given matrix a = [1 2 3;4 5 6]; so answer is going to be [1 3;4 6]
8 years 前
已解决
Matrix FUN
Given a Matrix M, find out the number of elements of matrix that are divisible by 3. M = [1 2 3;4 5 6;7 8 9]; ou...
8 years 前
已解决
The prisoner
"We want information, information, information." "Who are you?" Input can be a string or a number (array).
8 years 前
已解决
Concatenate strings
concatenate a variable number of input strings to produce one outputstring
8 years 前
已解决
Convert yards to feet
The goal of this script is to convert a value given in yards to feet.
8 years 前
已解决
Penny flipping - calculate winning probability (easy)
Two players are playing a fair penny flipping game. For each flip, the winner adds one penny from the loser's collection to his/...
8 years 前
已解决
Vectorizing, too easy or too hard?
Please insert a . before any ^, * or / in the string. That's it!!
8 years 前
已解决
Find the logic
There exists one logic in between input and output. Find it (easy math). Example 1: x=13 then y=339; Example 2: x=26...
8 years 前
已解决
How many jokers?
* Given DNA codes of a group of suspects, * and a code for certain types of jokers, * Count how many jokers of that type. * ...
8 years 前
已解决
Multiply by 3
Given the variable x as your input, multiply it by three and put the result in y.
8 years 前
已解决
CONVERT TAN TO SIN
In a right angle triangle ABC given the tan(A) then find sin(A) For example tan(A)=3/4 then sin(A)=3/5
8 years 前
已解决
MATCH THE STRINGS (2 CHAR) very easy
Match the given string based on first two characters on each string. For example A='harsa'; b='harish'; result '1' ...
8 years 前
已解决
Add 7
Given an input variable x, output a variable y that is 7 greater than x. Example: Input x = 1 Output y is 8 Input ...
8 years 前
已解决
Matrix which contains the values of an other matrix A at the given locations.
If you have two matrices, which together give xc and yc coordinates into another matrix, eg : xc = [1 1 1; 2 2 1]; ...
8 years 前
已解决
Create a square matrix of multiples
Given an input, N, output a matrix N x N with each row containing multiples of the first element of each row. This also applies...
8 years 前
已解决
Rearrange string
Input is a given string. Output is the number of ways to rearrange the string.
8 years 前
已解决
How find minimum element of a column in matrix?
How find minimum element of a column in matrix?
8 years 前
已解决
How to find average of each column ?
How to find average of each column for a given matrix?
8 years 前
已解决
Calculate representive values (max. min. std)
A B C -------------------------- t=1 2.2 2.6 2.4 t=2 2.4 2.8 2.2 t=3 2.6 2.7 2....
8 years 前
已解决
Check given number is odd or even
Using input [x], check given number is odd or even if x is odd, output should be true.
8 years 前