Solved


vector to string
Determine what the ASCII characters spell out. Example: input = [ 72 73 71 72] output = 'HIGH'

meer dan 3 jaar ago

Solved


Find max prime number
Given integer number n. Find the max prime number (mpn) that smaller than or equal to n. Example: n = 10 --> mpn = 7

meer dan 3 jaar ago

Solved


Convert radians to degrees
Given input in radians, output to degrees

meer dan 3 jaar ago

Solved


Calculate area of sector
A=function(r,seta) r is radius of sector, seta is angle of sector, and A is its area. Area of sector A is defined as 0.5*(r^2...

meer dan 3 jaar ago

Solved


Reverse a matrix
Its simple. You have to reverse a given matrix.

meer dan 3 jaar ago

Solved


Concatenate two strings
Its very easy. Just concatenate two strings.

meer dan 3 jaar ago

Solved


Find the dimensions of a matrix
Just find the number of columns of the given matrix. Example x = [1 2 3 4 5 6] y = 2

meer dan 3 jaar ago

Solved


Max of a Vector
Write a function to return the max of a vector

meer dan 3 jaar ago

Solved


Do you like your boss?
Do you like your boss? Answer can be any string! For example: Boss = 'Do you like your boss?'; Output = 'yes' or ...

meer dan 3 jaar ago

Solved


Remove the Zero
Given an array n, remove all zeros

meer dan 3 jaar ago

Solved


If-then-else
Complete the function below such that if the value of x is in the range 10 to 14, inclusive, the value 18 is assigned to y. Oth...

meer dan 3 jaar ago

Solved


Square a Number
Given an input x, return y, which is equal to the square of x.

meer dan 3 jaar ago

Solved


Arrange vector in ascending order
Arrange a given vector in ascending order. input = [4 5 1 2 9]; output = [1 2 4 5 9];

meer dan 3 jaar ago

Solved


Add two numbers
Calculate the sum of two numbers. Example input = [2 3] output = 5

meer dan 3 jaar ago

Solved


y equals x divided by 2
function y = x/2

meer dan 3 jaar ago

Solved


length of a vector
Find twice the length of a given vector.

meer dan 3 jaar ago

Solved


Y=X
Given an input variable x, output a variable y that is equal in value to x. Example: Input x = 1 Output y is 1 Inp...

meer dan 3 jaar ago

Solved


Return 'on' or 'off'
When the input is true, return 'on', otherwise, return 'off'.

meer dan 3 jaar ago

Solved


Too mean-spirited
Find the mean of each consecutive pair of numbers in the input row vector. For example, x=[1 2 3] ----> y = [1.5 2.5] x=[1...

meer dan 3 jaar ago

Solved


kmph to mps
convert kilometer per hour to meter per second

meer dan 3 jaar ago

Solved


index of n^2 in magic(n)
input=5 magic matrix 17 24 1 8 15 23 5 7 14 16 4 6 13 20 22 10 ...

meer dan 3 jaar ago

Solved


reverse string
input='rama' output='amar'

meer dan 3 jaar ago

Solved


Sum of odd numbers in a matrix
Find the sum of all the odd numbers in a matrix. Example x = [2 3 5 7 1 4 11] y = 27

meer dan 3 jaar ago

Solved


Celsius to Kelvin
Convert Celsius degrees to Kelvin temperature.

meer dan 3 jaar ago

Solved


Sum of diagonals elements of a matrix
Given a matrix, return the sum of all the elements across the diagonals. E.g. A = [1 2 3; 4 5 6; 7 8 9;...

meer dan 3 jaar ago

Solved


Area of a circle
Find the value for area of the circle if diameter is given

meer dan 3 jaar ago

Solved


Add two numbers
Add two numbers (For beginners)

meer dan 3 jaar ago

Solved


Most nonzero elements in row
Given the matrix a, return the index r of the row with the most nonzero elements. Assume there will always be exactly one row th...

meer dan 3 jaar ago

Solved


Is it a number?
Determine if input is numeric. If it is,output is 1; if it is not, output is 0.

meer dan 3 jaar ago

Solved


Given a matrix, return the last eigen value
Given a matrix, return the first eigen value For example: x = magic(5) 17 24 1 8 15 23 5 7 14 ...

meer dan 3 jaar ago

Load more