A résolu


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

presque 6 ans il y a

A résolu


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

presque 6 ans il y a

A résolu


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

presque 6 ans il y a

A résolu


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]

presque 6 ans il y a

A résolu


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

presque 6 ans il y a

A résolu


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

presque 6 ans il y a

A résolu


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

presque 6 ans il y a

A résolu


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

presque 6 ans il y a

A résolu


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

presque 6 ans il y a

A résolu


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

presque 6 ans il y a

A résolu


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

presque 6 ans il y a

A résolu


Seperate 2nd column in a matrix

presque 6 ans il y a

A résolu


area

presque 6 ans il y a

A résolu


size

presque 6 ans il y a

A résolu


PRIME GENERATOR

presque 6 ans il y a

A résolu


Half the length of the vector

presque 6 ans il y a

A résolu


Remnant

presque 6 ans il y a

A résolu


Find the value of Y

presque 6 ans il y a

A résolu


Size

presque 6 ans il y a

A résolu


Matrix operation

presque 6 ans il y a

A résolu


Swap

presque 6 ans il y a

A résolu


NaN

presque 6 ans il y a

A résolu


Product of elements in a column

presque 6 ans il y a

A résolu


Double the length of the vector

presque 6 ans il y a

A résolu


find the height

presque 6 ans il y a

A résolu


PIN code

presque 6 ans il y a

A résolu


Insert zeros

presque 6 ans il y a

A résolu


Insert zeros II

presque 6 ans il y a

A résolu


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

presque 6 ans il y a

A résolu


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

presque 6 ans il y a

Charger plus