# Jian Yuan Wong

Appreciating life's simple pleasures

**Statistics**

**Cody**

**0** Problems

**195** Solutions

RANK**N/A**

of 264.964

REPUTATION**N/A**

CONTRIBUTIONS

**0** Questions

**0** Answers

ANSWER ACCEPTANCE **
0.00%
**

VOTES RECEIVED**0**

RANK

of 18.102

REPUTATION**N/A**

AVERAGE RATING**0.00**

CONTRIBUTIONS**0** Files

DOWNLOADS **0**

ALL TIME DOWNLOADS**0**

CONTRIBUTIONS**0 Posts**

CONTRIBUTIONS**0** Public Channels

AVERAGE RATING

CONTRIBUTIONS**0** Highlights

AVERAGE NO. OF LIKES

**Content Feed**

Solved

Assignment Problem

Given a matrix where row i corresponds to person i, and column j corresponds to task j and cell (i,j) corresponds to the time ta...

4 mesi ago

Solved

generate number in particular way

A = [1 5 2 7]; MAX = 10; generate a array Y = [1 2 2 2 2 2 3 3 4 4]; i.e. total eleme...

4 mesi ago

Solved

Sorting integers by their digits (Level 4)

This is the next step up from <http://www.mathworks.com/matlabcentral/cody/problems/42815-sorting-integers-by-their-digits-level...

4 mesi ago

Solved

Sorting integers by their digits (Level 3)

This is the next step up from <http://www.mathworks.com/matlabcentral/cody/problems/42811-sorting-integers-by-their-digits-level...

4 mesi ago

Solved

Sorting integers by their digits (Level 2)

This is the next step up from <http://www.mathworks.com/matlabcentral/cody/problems/42809-sorting-integers-by-their-digits Probl...

4 mesi ago

Solved

Sorting integers by their digits (Level 1)

Given a vector, v, of positive integers, return a vector, w, by sorting v in ascending order, such that primary sorting is done ...

4 mesi ago

Solved

Find last non-zero in a given dimension

You are given a logical matrix *BW* _of any dimension_, and a dimension *dim*. You need to find the locations of the last non-ze...

4 mesi ago

Solved

Find the sum of the elements in the "second" diagonal

Find the sum of the elements in the diagonal that starts at the top-right corner and ends at the bottom-left corner.

4 mesi ago

Solved

Pancake sorting

Sort a stack of pancakes by flipping them using spatula. * There are _N_ pancakes with diameters _1:N_. * Spatula can be ins...

4 mesi ago

Solved

How close to a hole

Suppose you have a description of good places (ones) and bad places (zeros). You want to know your distance from a bad place (in...

4 mesi ago

Solved

Split array into pieces according to corresponding array

An array x of length n has values 1...m with each value appearing at least once. The values are sorted (n>=m). A second...

4 mesi ago

Solved

Find the distance between runs

Another question inspired by the <http://uk.mathworks.com/matlabcentral/answers/?s_tid=gn_mlc_an answers forum>: A vector of ...

5 mesi ago

Solved

Find Elements in Range

Based on a question on <http://www.mathworks.com/matlabcentral/answers/ MATLAB Answers>. Find all the elements of a vector wh...

5 mesi ago

Solved

Find indices of diagonal elements

Given a matrix A and a diagonal index d (where 0 indicates the main diagonal and off-diagonals are identified by positive and n...

5 mesi ago

Solved

Neither minima nor maxima

Input v is a vector. Return all the elements of v which are not a local minimum or maximum. Example: v = [1 2 3 4 5] Ou...

5 mesi ago

Solved

Elements with highest local average

Input v is a row vector such that length(v)>3. Consider a sliding window of length 3 that is used to calculate the local average...

5 mesi ago

Solved

How to reverse spdiags?

The spdiags function extracts all nonzero diagonals from the m-by-n matrix A. So if A=[1 2 3;4 5 6;7 8 9], spdiags(A)=[7 4...

5 mesi ago

Solved

Find the same and successive values in a vector

Find the same and successive values in a vector. For example: Input x = [ 1 0 0 1 1 1 1 0 1 1 1 0 0 0 1 ] Start and end...

5 mesi ago

Solved

Longest Sequence of NaNs

In an array return the length of longest sequence of nans for each column. x = [ 2 3 1 2 5 6; nan nan 5 n...

5 mesi ago

Solved

Sum My Indices

Given inputs M and N (in that order), output an MxN matrix whose entries are equal to the sum of their indices. Example input...

5 mesi ago

Solved

Combine Data With Gaps

Combine data sets a and b where the datasets have "gaps" or unique points. Example: Input a = [1,0; 2,1; ...

5 mesi ago

Solved

Hard limit function

Classify x data as if x>=0 then y=1 if x<0 then y=0 Example x = [ -2 -1 0 1 2] y = [ 0 0 1 1 1]

5 mesi ago

Solved

Sort numbers by outside digits

Sort the array so that they are sorted as if their value was a 5 digit number made from the first three and last two digits of t...

5 mesi ago

Solved

Index of a Rational number

The set of real numbers are infinite. They are so many that real numbers can't even be enumerated. However, unlike real numbers ...

5 mesi ago

Solved

Tridiagonal

Return an n-by-n matrix that has a, b, c as the subdiagonal, main diagonal, and superdiagonal entries in the matrix. Example ...

5 mesi ago

Solved

Find the maximum two numbers of every column of a matrix

Find the maximum two numbers of every column of a matrix. Example: If we input a matrix A = [ 1 2 4 6 0 3 ...

5 mesi ago

Solved

Finding neighbors of [-1:1] in a matrix....

Hello All! Well I found this one fun to figure out, all you have to do is make a matrix of 1's or 0's (true or false) that sh...

5 mesi ago

Solved

How unique?

Sometimes, when we check unique entries of vector we would like to know how many times each value occurs. Given vector of num...

5 mesi ago

Solved

Another colon problem

This is simple problem based on problems 555, 801, 1118, etc. Create an index vector from two input vectors. Example: ...

5 mesi ago

Solved

return row and column indices given 2 values which define a range

Inspired by problem <http://www.mathworks.co.kr/matlabcentral/cody/problems/856-getting-the-indices-from-a-matrice> Inputs: - ...

5 mesi ago