Community Profile

# Alexander

Last seen: 2ヶ月 前 2018 以来アクティブ

All

バッジを表示

#### Content Feed

Join repeated continuous elements of a vector
Hi, is there a simple method to join repeated continuous elements of a vector in Matlab? For example if the input is: in = [1 ...

1年以上 前 | 1 件の回答 | 0

### 1

Most nonzero elements in row
Given the matrix a, return the index r of the row with the most nonzero elements. Assume there will always be exactly one row th...

3年以上 前

Back and Forth Rows
Given a number n, create an n-by-n matrix in which the integers from 1 to n^2 wind back and forth along the rows as shown in the...

3年以上 前

Sum all integers from 1 to 2^n
Given the number x, y must be the summation of all integers from 1 to 2^x. For instance if x=2 then y must be 1+2+3+4=10.

3年以上 前

Find the numeric mean of the prime numbers in a matrix.
There will always be at least one prime in the matrix. Example: Input in = [ 8 3 5 9 ] Output out is 4...

3年以上 前

Remove any row in which a NaN appears
Given the matrix A, return B in which all the rows that have one or more <http://www.mathworks.com/help/techdoc/ref/nan.html NaN...

3年以上 前

Determine if input is odd
Given the input n, return true if n is odd or false if n is even.

3年以上 前