Resuelto


Cell joiner
You are given a cell array of strings and a string delimiter. You need to produce one string which is composed of each string fr...

alrededor de 10 años hace

Resuelto


Binary numbers
Given a positive, scalar integer n, create a (2^n)-by-n double-precision matrix containing the binary numbers from 0 through 2^n...

alrededor de 10 años hace

Resuelto


Find best domino orientation
Given a list of pairs, find the orientation they should be placed in a line, such that the sum of the absolute values of the dif...

alrededor de 10 años hace

Resuelto


Choose the best fitting dominoes
You will be given a cell array of nx2 matrices. Choose one row from each matrix. These are the ordered pairs that will be plac...

alrededor de 10 años hace

Resuelto


Simple polynomial evaluation
Compute the value of a polynomial of degree n with all coefficients '1', at value x. n is always n>=0. p(x)=1+x+x^2+...+x^n...

alrededor de 10 años hace

Resuelto


S-T-R-E-T-C-H I-T O-U-T
You will be given a row of numbers (x), and a single number (n). Your job is to write a script that will stretch out the row of...

alrededor de 10 años hace

Resuelto


Repeat the entries of the vector to their reference times in the vector.
e.g for input x: [ 7 3 9 5] output y: [ 7 3 3 9 9 9 5 5 5 5]

alrededor de 10 años hace

Resuelto


multiply an array by its position number
You have given an array. Multiply an array by its position number

alrededor de 10 años hace

Resuelto


first element of matrix
find the first elements of a column matrix

alrededor de 10 años hace

Resuelto


find a specific element from an matrix
Find the element from matrix which is in 2nd row and 3rd column.

alrededor de 10 años hace

Resuelto


find the mean of all elements in a matrix
given a matrix, just find the mean of all elements in the matrix

alrededor de 10 años hace

Resuelto


Find mean
given an array, find the mean of the number in that array

alrededor de 10 años hace

Resuelto


find sum of the numbers in array
calculate the sum of numbers in a given array

alrededor de 10 años hace

Resuelto


Halder function
Find the halder function value of a number

alrededor de 10 años hace

Resuelto


find max
You are given an array number find the maximum

alrededor de 10 años hace

Resuelto


find minimum
find the minimum from an array

alrededor de 10 años hace

Resuelto


modulus of a number
find the modulus of a given number

alrededor de 10 años hace

Resuelto


Vector with a repeated entry
Create a row vector of length n, filled with 4's. For example, if n = 3, output = [4 4 4] Hint: Search for the function...

alrededor de 10 años hace

Resuelto


Area of a circle
Given the radius x, y would be the area of a circle. Pi = 3.1416

alrededor de 10 años hace

Resuelto


Back to basics 22 - Rotate a matrix
Covering some basic topics I haven't seen elsewhere on Cody. Rotate the input matrix 90 degrees counterclockwise (e.g. [1 2; ...

alrededor de 10 años hace

Resuelto


Square root of a number
Write a code that will output the square root of x.

alrededor de 10 años hace

Resuelto


If you have matrix A, create matrix B using matrix A as an "element"
A = [1 2 3 4; 5 6 7 8] B = [1 2 3 4 1 2 3 4; 5 6 ...

alrededor de 10 años hace

Resuelto


Find unique number in input
Find value that occurs in odd number of input elements.

alrededor de 10 años hace

Resuelto


what can you get for exactly amount of money
You go to store, where each product has price. Prices are in vector s= [ 195 125 260 440 395 290] and you have amount of ...

alrededor de 10 años hace

Resuelto


this is a test problem
this is a anniversary test problem

alrededor de 10 años hace

Resuelto


Bottles of beer
Given an input number representing the number of bottles of beer on the wall, output how many are left if you take one down and ...

alrededor de 10 años hace

Resuelto


Find the longest sequence of 1's in a binary sequence.
Given a string such as s = '011110010000000100010111' find the length of the longest string of consecutive 1's. In this examp...

alrededor de 10 años hace

Resuelto


radius of a spherical planet
you just measured its surface area, that is the input.

alrededor de 10 años hace

Resuelto


Create a row array using double colon operator
Create a row array from 9 to 1, using the double colon operator.

alrededor de 10 años hace

Resuelto


Distance walked 1D
Suppose you go from position 7 to 10 to 6 to 4. Then you have walked 9 units of distance, since 7 to 10 is 3 units, 10 to 6 is 4...

alrededor de 10 años hace

Cargar más