Resuelto


Can we make a triangle?
Given three positive number, check whether a triangle can be made with these sides length or not. remember that in a triangle su...

más de 5 años hace

Resuelto


remove single elements
Given a vector of integers, remove the elements that have appeared only once. The output elements should be in exact order as th...

más de 5 años hace

Resuelto


Square
X is a number, write a code, where Y should be the square of X.

más de 5 años hace

Resuelto


Given a matrix A (size m x n) create a matrix B (size m+2 x n+2) which consists of matrix A surrounded by zeros. See Example below:
A = [1 2 3 4 5 6] ----------- B = [0 0 0 0 0 0 1 2 3 0 0 4 5 6 0 0 0 0 0 0]

más de 5 años hace

Resuelto


Square root
Given x (a matrix), give back another matrix, where all the elements are the square roots of x's elements.

más de 5 años hace

Resuelto


Given a matrix A (size m x n) create a matrix B which consists of matrix A sorted in descending order by columns and then by rows.
--------------- A= [ 2 6 -3 7 12 0 -12 5 1] --------------- B= [12 7 1 6 2 0 5 -3 ...

más de 5 años hace

Resuelto


Pattern Sum
Write a function which receives two single digit positive integers, (k and m) as parameters and calculates the total sum as: k...

más de 5 años hace

Resuelto


Rearrange the given matrix to have all its zeros climb up to the top of each column - using for loops.
Given a matrix x, *using loops only* return a matrix y, in which all the zeros have "climbed" up to the top. That is, any zeros ...

más de 5 años hace

Resuelto


Given a matrix A return a vector of the product of the elements in each column using a loop without using prod.
--------------------- for m: 3 1 3 3 10 1 9 1 9 4 1 4 5 6 5 ...

más de 5 años hace

Resuelto


Find the next Fibonacci number
In the sequence of Fibonacci numbers, every number is the sum of the two preceding ones: 1, 1, 2, 3, 5, 8, 13, 21, 34, 55...

más de 5 años hace

Resuelto


Find MPG of Lightest Cars
The file |cars.mat| contains a table named |cars| with variables |Model|, |MPG|, |Horsepower|, |Weight|, and |Acceleration| for ...

más de 5 años hace

Resuelto


Seperate 2nd column in a matrix

más de 5 años hace

Resuelto


area

más de 5 años hace

Resuelto


size

más de 5 años hace

Resuelto


PRIME GENERATOR

más de 5 años hace

Resuelto


Half the length of the vector

más de 5 años hace

Resuelto


Remnant

más de 5 años hace

Resuelto


Find the value of Y

más de 5 años hace

Resuelto


Size

más de 5 años hace

Resuelto


Matrix operation

más de 5 años hace

Resuelto


Swap

más de 5 años hace

Resuelto


NaN

más de 5 años hace

Resuelto


Product of elements in a column

más de 5 años hace

Resuelto


Double the length of the vector

más de 5 años hace

Resuelto


find the height

más de 5 años hace

Resuelto


PIN code

más de 5 años hace

Resuelto


Insert zeros

más de 5 años hace

Resuelto


Insert zeros II

más de 5 años hace

Resuelto


F.R.I.E.N.D.S

más de 5 años hace

Resuelto


F.R.I.E.N.D.S

más de 5 años hace

Cargar más