Resuelto


Initialize a Natural Number matrix.
Given length of matrix initialize a matrix consisting of natural numbers from 1 to n: n = 10; x = [ 1 2 3 4 5 6 7 8 9 10]; ...

alrededor de 4 años hace

Resuelto


Give prime Numbers upto n
You are given a input number x; print all the prime numbers less than equal to x.

alrededor de 4 años hace

Resuelto


Find the diagonal of the square of side L
You are given a square of side length L, find D the length of its diagonal.

alrededor de 4 años hace

Resuelto


Polynomial evaluation
Compute the value of a polynomial of degree n with coeffcients in vector a, at value x. p(x)=a(1)+a(2)x+a(3)x^2+...+a(n+1)x...

alrededor de 4 años hace

Resuelto


Xor of matrix
you have to set exclusive OR of two arrays

alrededor de 4 años hace

Resuelto


Rotate counterclockwise a matrix 90 deg with left-bottom element
Example: Input [ 1 2 3 4 5 6 ] Output [ 3 6 2 5 1 4 ]

alrededor de 4 años hace

Resuelto


Sum of digits of powers of 2
Given n, first, calculate the number 2^n. Then, sum the digits that comprise that number. For example: Input: n = 7 2^n = ...

alrededor de 4 años hace

Resuelto


Numeric array to cell array of strings (easy)
Given a numeric array (A) and a 1xk cell array of strings (C), return a cell array (B) that is the same size as A and in which e...

alrededor de 4 años hace

Resuelto


Find 100 from a Matrix and Replace With 0 with less computation time
pls use this matrix x = [208 40 167 180 112 70 192 215 90 19 231 100 9 100 97 100 ...

más de 4 años hace

Resuelto


check whether a number is a pentatope number
<https://oeis.org/A000332>

más de 4 años hace

Resuelto


Double Factorial
Return double factorial n(n-2)...(5)(3)(1), n>0, odd n!! = n(n-2)...(6)(4)(2), n>0, even 1 ...

más de 4 años hace

Resuelto


Square
square root of x

más de 4 años hace

Resuelto


Given a vector x, return vector y with all negative elements from the vector x.
Given a vector x, return vector y with all negative elements from the vector x if x has negative elements. Otherwise return 0. ...

más de 4 años hace

Resuelto


easy problem
Find the last element of the array

más de 4 años hace

Resuelto


Sum sum!!!
Sum the numbers from 1 to n

más de 4 años hace

Resuelto


unsolvable

más de 4 años hace

Resuelto


Minimum Maximum Sort Array
sort one array by put minimum value followed by maximum as follow a=[2 3 1 5] and the solution is y=[1 5 2 3 3 2 5 1];

más de 4 años hace

Resuelto


Complex transpose
Calculate the transpose of a matrix having complex numbers as its elements without changing the signs of the imaginary part. ...

más de 4 años hace

Resuelto


STOP that car!!!
The maximum allowed speed for this road is 100. Find the cars that didn't observe the speed limit Arrest and fine them!!!

más de 4 años hace

Resuelto


how tall are you?
you can find the length wit this code.

más de 4 años hace

Resuelto


Sum multiples

más de 4 años hace

Resuelto


Divisors

más de 4 años hace

Resuelto


Double the next and alternate sign

más de 4 años hace

Resuelto


edge detection
write a function that gives the indexes of rising or falling edge x is a vector (assume it contains always at least one eleme...

más de 4 años hace

Resuelto


Throw common elements of two vector arrays in sorted manner
Throw common elements as output in sorted manner (acending order) of two given input vector arrays

más de 4 años hace

Resuelto


Values in Array
How many values are in the array

más de 4 años hace

Resuelto


Number of problems
No, you don't read it wrong: this assignment is to return the number of this problem (and not the problem of this number).

más de 4 años hace

Resuelto


Sum of logarithms
Given a vector, v, of real positive numbers, compute the sum, s, of the base-10 logarithms of the elements of v, without the use...

más de 4 años hace

Resuelto


mathematics , probability problem
How many different result can we have, rolling k dice?

más de 4 años hace

Cargar más