Gelöst


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

mehr als 6 Jahre vor

Gelöst


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

mehr als 6 Jahre vor

Gelöst


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

mehr als 6 Jahre vor

Gelöst


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

mehr als 6 Jahre vor

Gelöst


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

mehr als 6 Jahre vor

Gelöst


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

mehr als 6 Jahre vor

Gelöst


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.

mehr als 6 Jahre vor

Gelöst


Matrix Max Finder
Output the maximum value in a matrix

mehr als 6 Jahre vor

Gelöst


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

mehr als 6 Jahre vor

Gelöst


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

mehr als 6 Jahre vor

Gelöst


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

mehr als 6 Jahre vor

Gelöst


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)

mehr als 6 Jahre vor

Gelöst


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

mehr als 6 Jahre vor

Gelöst


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

mehr als 6 Jahre vor

Gelöst


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

mehr als 6 Jahre vor

Gelöst


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

mehr als 6 Jahre vor

Gelöst


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

mehr als 6 Jahre vor

Gelöst


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

mehr als 6 Jahre vor

Gelöst


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

mehr als 6 Jahre vor

Gelöst


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

mehr als 6 Jahre vor

Gelöst


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

mehr als 6 Jahre vor

Gelöst


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'

mehr als 6 Jahre vor

Gelöst


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

mehr als 6 Jahre vor

Gelöst


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

mehr als 6 Jahre vor

Gelöst


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

mehr als 6 Jahre vor

Gelöst


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

mehr als 6 Jahre vor

Gelöst


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

mehr als 6 Jahre vor

Gelöst


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

mehr als 6 Jahre vor

Gelöst


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

mehr als 6 Jahre vor

Gelöst


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

fast 7 Jahre vor

Mehr laden