解決済み


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

5年以上 前

解決済み


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

5年以上 前

解決済み


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

5年以上 前

解決済み


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]

5年以上 前

解決済み


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

5年以上 前

解決済み


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

5年以上 前

解決済み


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

5年以上 前

解決済み


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

5年以上 前

解決済み


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

5年以上 前

解決済み


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

5年以上 前

解決済み


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

5年以上 前

解決済み


Seperate 2nd column in a matrix

5年以上 前

解決済み


area

5年以上 前

解決済み


size

5年以上 前

解決済み


PRIME GENERATOR

5年以上 前

解決済み


Half the length of the vector

5年以上 前

解決済み


Remnant

5年以上 前

解決済み


Find the value of Y

5年以上 前

解決済み


Size

5年以上 前

解決済み


Matrix operation

5年以上 前

解決済み


Swap

5年以上 前

解決済み


NaN

5年以上 前

解決済み


Product of elements in a column

5年以上 前

解決済み


Double the length of the vector

5年以上 前

解決済み


find the height

5年以上 前

解決済み


PIN code

5年以上 前

解決済み


Insert zeros

5年以上 前

解決済み


Insert zeros II

5年以上 前

解決済み


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

5年以上 前

解決済み


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

5年以上 前

さらに読み込む