Gelöst


expand intervals vol.2
Similar to problem <http://www.mathworks.co.uk/matlabcentral/cody/problems/2528 2528>. This is a more general case, when bounds ...

20 Tage vor

Gelöst


Wheat on a chessboard pt 1
If a chessboard were to have wheat placed upon each square such that one grain were placed on the first square and each successi...

20 Tage vor

Gelöst


Check transmitted data follow even parity (True or false)
Check transmitted data follow even parity (True or false) <http://en.wikipedia.org/wiki/Parity_bit/ Parity Bit> Say, '010...

21 Tage vor

Gelöst


Find nth triangular number.
Calculate the triangular number of given integer n.

21 Tage vor

Gelöst


Hofstadter H sequence
The Hofstadter H sequence is defined as follows: The first elements of the sequence are 0, 1, 1, 2, 3, 4, 4, 5, 5, 6. Write ...

21 Tage vor

Gelöst


Convert integer to base26 using letters
Write a function that converts a decimal integer to base26 using the letters of the english alphabet, i.e. 0->'a', 1->'b', 2->'c...

21 Tage vor

Gelöst


Find prime number couples
Given a vector a, which will always contain at least one pair of prime numbers couple, return a matrix called 'couple' in which ...

etwa ein Monat vor

Gelöst


Tricky timing
Write a function that takes between 0.5 seconds and 0.6 seconds to run.

etwa ein Monat vor

Gelöst


Split array into pieces according to corresponding array
An array x of length n has values 1...m with each value appearing at least once. The values are sorted (n>=m). A second...

etwa ein Monat vor

Gelöst


Find smallest integer type to accommodate your number
MATLAB supports 1-, 2-, 4-, and 8-byte storage for integer data. Find the smallest integer type to accomodate a scalar integer. ...

etwa ein Monat vor

Gelöst


Solve for factorial of X
It gives you the number x, and set y equal to x factorial. Ex. There are 52 cards in a deck, each specific order of all 52 car...

etwa ein Monat vor

Gelöst


Monty Python and the Holy Grail: Crossing the Bridge of Death
To cross the Bridge of Death, your function must return the numerical value for the airspeed velocity of an unladen swallow

etwa ein Monat vor

Gelöst


Pascal's Triangle
Create a matrix of size N x N containing a Pascal's Triangle that starts from the upper left corner according to the test cases ...

etwa ein Monat vor

Gelöst


Easy Sequences 2: Trigonometric function with integral input and output
The function 'F', defined as: , will always return an integer if the input is a natural number (in radian...

etwa 2 Monate vor

Gelöst


Find longest run
Write a function longest_run that takes as input an array of 0's and 1's and outputs the length and index of the longest consecu...

etwa 2 Monate vor

Gelöst


Sum of Elements of a matrix
It sums the elemets of a 2x2 matrix

etwa 2 Monate vor

Gelöst


Einsteinium-253 decay
Radioactive Einsteinium-253 has a half-life of 1,768,608 seconds. Given 1000mg of Einsteinium-253 at t=0 days, how much is lef...

etwa 2 Monate vor

Gelöst


Create formatted value string Cell array of a vector
This Challenge is to create a cell array that contains strings of vector components in a given format. c=vector2formattedstri...

etwa 2 Monate vor

Gelöst


Write a string
The answer should be a string that is the value: "I like apples!" (Ignore the quotation marks, just write what is inside the ...

etwa 2 Monate vor

Gelöst


PEMDAS

etwa 2 Monate vor

Gelöst


Point on a line
Find the slope of the straight line between the points a and b. Then find y at x=20.

etwa 2 Monate vor

Gelöst


Squares
Find the square of x.

etwa 2 Monate vor

Gelöst


Division
Divide a by b.

etwa 2 Monate vor

Gelöst


Subtraction
Subtract a from b.

etwa 2 Monate vor

Gelöst


Multiplication
Multiply a and b.

etwa 2 Monate vor

Gelöst


Addition
Add together the values of a and b.

etwa 2 Monate vor

Gelöst


Count the Even Digits in a Number
Given a positive integer n, write a function that returns how many digits of n are even. Even digits are: 0, 2, 4, 6, 8

etwa 2 Monate vor

Gelöst


Invert a 3D rotation matrix
Given a 3D rotation matrix, belonging to the matrix group SO(3), compute its inverse without using the functions inv() or pinv()...

2 Monate vor

Gelöst


Sum of even numbers in a vector
Write a function that takes a vector of numbers and returns the sum of all the even numbers in the vector.

2 Monate vor

Gelöst


Linearly Spaced Array
Create a linearly spaced array from 0 to x consisting of y elements.

2 Monate vor

Mehr laden