Solved


Remove the air bubbles from a vector
_*A reduced version of Problem 112*_ Given a column vector v, return a vector w in which all the zeros have "bubbled" to the ...

mer än 3 år ago

Solved


How many days in a month?
Return the number of days in a given month in 2017. If the input is not a valid month number, return -1. Examples: Input...

mer än 3 år ago

Solved


How many Integers?
Count the integers in a given vector |v|. You *must* use a loop to count each element separately. Examples: Input: v...

mer än 3 år ago

Solved


Laguerre polynomials
Given an integer _n_ &ge; 0, generate the _n_-th <http://en.wikipedia.org/wiki/Laguerre_polynomials Laguerre polynomial>. *Ex...

mer än 3 år ago

Solved


Kepler's Equation
Solve <http://en.wikipedia.org/wiki/Kepler's_equation Kepler's Equation>. Note that the solution is rounded down to 5 decima...

mer än 3 år ago

Solved


Matrix Ax=B problem
Take a incoming A and B vector, and solve for x

mer än 3 år ago

Solved


Find the sum of the largest two elements in a vector
With this one, you have to find the two largest elements in a vector and output the sum of those numbers.

mer än 3 år ago

Solved


Matrix Max Finder
Output the maximum value in a matrix

mer än 3 år ago

Solved


Find the index of the lowest number in a matrix
Take a matrix, and find the [row cal] index of the lowest number

mer än 3 år ago

Solved


Replace 0 indices in array with 1's
Take a incoming vector, and replace 0's with ones

mer än 3 år ago

Solved


Check if inputted variable is a string or a number
Check if a inputted variable is a number or a string, given a string input (i.e. '1' is 1 and thus a number, 'a' is a string).

mer än 3 år ago

Solved


Find the mean of two vectors
Take two vectors, and output the mean of them (bonus if you don't use the in-built mean function)

mer än 3 år ago

Solved


Matrix Generation from Vector Multiplication
Output the matrix generated from multiplying two vectors together

mer än 3 år ago

Solved


Automatic String Editing
In this function, you will take an incoming string, and output the same string with each character one letter later in the alpha...

mer än 3 år ago

Solved


String Delimination and Outputting
In this problem, take an incoming string and deliminate the string based on spaces. Output the first string in between the space...

mer än 3 år ago

Solved


More Simple String Concatenation
Take the first string input, reverse the order of the string from the end to beginning (i.e. apple becomes elppa), add a space a...

mer än 3 år ago

Solved


Simple String Concatenation
This is a simple problem involving taking two incoming strings, and outputting the concatenated string with a space separating t...

mer än 3 år ago

Solved


Matrix element wise multiplication
Take two incoming vectors, and multiply them element wise

mer än 3 år ago

Solved


Vector indexing: lower than mean
Find all values in a vector lower than the mean of the vector

mer än 3 år ago

Solved


Resizing Matrices
Take an 4x3 matrix, and resize it to a 2x6 matrix

mer än 3 år ago

Solved


Simple Vector Addition
Take two incoming vectors and output the sum of the two vectors

mer än 3 år ago

Solved


Determine whether the input is divisible by 3 as well as 5
If the input is divisible by 3 as well as 5 then the output should be 'true' otherwise 'false'

mer än 3 år ago

Solved


Eye Squared
For a positive integer |n| create the identity matrix with |n| elements. In case it is not possible to produce an identity ma...

mer än 3 år ago

Solved


calculate RMS voltage
given peak to peak voltage, calculate rms voltage

mer än 3 år ago

Solved


Put Two 1D matrices into one 1D matrix
Example: If input a = [1 2 3 4 5]; input b = [10 9 8 7 6]; then output will be, y_correct = [1 10 2 9 3 8 4 7 5...

mer än 3 år ago

Solved


Broken numlock key, oppps !
The numlock key on my computer is pressed and is now broken, so I cant press it to switch off the numlock mode. And hence I am n...

mer än 3 år ago

Solved


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...

mer än 3 år ago

Solved


Vertical matrix sort
Given a matrix x with n rows and m columns, return a matrix y with 2n rows and m columns, such that every column in x is sorted ...

mer än 3 år ago

Solved


Horizontal matrix sort
Given a matrix x with n rows and m columns, return a matrix y with n rows and 2m columns, such that every row in x is sorted fro...

mer än 3 år ago

Solved


Make an identity matrix whose diagonal elements are 1:n
For a given input n, make an n by n identity matrix that contains the elements 1:n along its diagonal. For example, if input=5: ...

nästan 4 år ago

Load more