Community Profile

Mehmet OZC

Last seen: Today
2,367 total contributions since 2012

View all

Contributions in
View by

Solved

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

1 day ago

Solved

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

1 day ago

Solved

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

2 days ago

Solved

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]

2 days ago

Solved

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

2 days ago

Solved

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

2 days ago

Solved

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

2 days ago

Solved

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

2 days ago

Solved

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

2 days ago

Solved

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

4 days ago

Solved

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

4 days ago

Solved

area

4 days ago

Solved

size

4 days ago

Solved

PRIME GENERATOR

4 days ago

Solved

Remnant

4 days ago

Solved

Find the value of Y

4 days ago

Solved

Size

4 days ago

Solved

Matrix operation

4 days ago

Solved

Swap

4 days ago

Solved

NaN

4 days ago

Solved

find the height

9 days ago

Solved

PIN code

9 days ago

Solved

Insert zeros

9 days ago

Solved

Insert zeros II

9 days ago

Solved

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

9 days ago

Solved

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

9 days ago