已解决


Dominant Matrix - 01
A matrix is said to be diagonally dominant if for every row of the matrix, the magnitude of the diagonal entry in a row is large...

26 days 前

已解决


All capital?
Are all the letters in the input string capital letters? Examples: 'MNOP' -> 1 'MN0P' -> 0

26 days 前

已解决


construct matrix with identical rows
Input a row vector such as x=1:10. Now we need to construct a matrix with L rows,of which every row vector is a copy of x. E...

26 days 前

已解决


Related Vectors
I have two vectors A & B. If the values in vector A is zero then the corresponding value in vector B should be zero. Example:...

26 days 前

已解决


Find the remainder - 02
Given an array of integers, find the remainder when the summation of all the elements is divided by N

26 days 前

已解决


Last Duplicate
Given an array of integers, find the last duplicate element — that is, the element whose second occurrence appears latest in the...

26 days 前

已解决


Create a Standard Size Vector
Given an input x, create a row vector y from 1 to x with 5 elements.

26 days 前

已解决


Resizing Matrices
Take an 4x3 matrix, and resize it to a 2x6 matrix

26 days 前

已解决


Finding an element in a vector
x is a vector of unknown length your function should return the index of the first element in the vector that is greater than...

26 days 前

已解决


Draw a '9' in a zero matrix!

26 days 前

已解决


Draw a '6' in a zero matrix!

26 days 前

已解决


Draw a '7' in a zero matrix!

26 days 前

已解决


Draw a '8' in a zero matrix!

26 days 前

已解决


Draw a '5' in a zero matrix!

26 days 前

已解决


Draw a '4' in a zero matrix!

26 days 前

已解决


Draw a '3' in a zero matrix!

26 days 前

已解决


Draw a '2' in a zero matrix!

26 days 前

已解决


Draw a '1' in a zero matrix!

26 days 前

已解决


Sum of Positive Elements in a Matrix
Given a matrix A, write a function that returns the sum of all positive elements in A. Input: A = [-3, 4, -1; 6, -2, 8] ...

26 days 前

已解决


Sum of Even Numbers in a Vector
Write a function that takes a vector x as input and returns the sum of all even numbers in x. Input: x = [1, 2, 3, 4, 5, 6] ...

26 days 前

已解决


0, 2, 0, -2, 0, 2, 0, -2, ...
Generate the first n terms of a periodic sequence defined as f(x) = 0, 2, 0, -2, 0, 2, 0, -2, ..., for x = 1, 2, 3, 4, 5, 6...

27 days 前

已解决


Reverse a string
Reverse the given string. Example input = 'reverse' output = 'esrever'

27 days 前

已解决


Find the largest number
Find the largest number |x| among 4 numbers given as variables |a|, |b|, |c|, and |d|. Example: Input: a = 4; b = 7; c ...

27 days 前

已解决


How many days in a month?
Return the number of days in a given month in 2017. If the input is not a valid month number, return -1. Examples: Input...

27 days 前

已解决


Separate even from odd numbers in a vector - without loops
*Without using loops*, rearrange a vector of integers such that the odd numbers appear at the beginning, and even numbers at the...

27 days 前

已解决


Add a vector to a matrix
Given a matrix |mat| of size |mXn| and a row vector |v| of size |1Xs|, return a matrix with |m+1| rows that conatains |mat| over...

27 days 前

已解决


Determine if a row vector has NaN
Determine if a row vector x has NaN

27 days 前

已解决


Select primes from the matrix.
Select primes from the matrix.

27 days 前

已解决


Sum positive elements of matrix.
Calculate sum of positive elements of the matrix.

27 days 前

已解决


Ratio between sum of primes and sum of factors
Write a function that calculates the ratio between the sum of primes numbers lower or equal to x, and the sum of the factors of ...

27 days 前

加载更多