# Peiyi Yao

**Statistics**

**Cody**

**0** Problems

**973** Solutions

RANK**N/A**

of 265,248

REPUTATION**N/A**

CONTRIBUTIONS

**0** Questions

**0** Answers

ANSWER ACCEPTANCE **
0.00%
**

VOTES RECEIVED**0**

RANK

of 18,126

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

Create a recurrence matrix for a vector of data

In <https://en.wikipedia.org/wiki/Conversation_analysis conversation analysis>, it's often useful to track the contributions fro...

5 months ago

Solved

Average valid values of arrays

Given a 1D array (column or row vector), compute the average of valid values. Valid values are defined via two thresholds: minVa...

5 months ago

Solved

Next Lower Power of B

Given a number _n_ and a base _B_ greater than 1, return the lowest integer power of _B_ that is less than or equal to _n_. E...

6 months ago

Solved

Find elements of set A those are not in set B

Given two sets of data A and B. Find elements of A those are not in set B. ...

6 months ago

Solved

What's the missing interior angle?

I'm talking about polygons... The sum of the interior angles of a triangle is 180 degrees. The sum of the interior angles of a...

6 months ago

Solved

Can you reshape the matrix?

Given a matrix A, is it possible to reshape it into another matrix with the given number of rows?

6 months ago

Solved

Find the diagonal of the square of side L

You are given a square of side length L, find D the length of its diagonal.

7 months ago

Solved

Find offset of given matrix element from first matrix element

Given matrix m and an element of that matrix, return the offset from its first element. e.g. m=[11 2 34; 40 51 6; 87 8 109] el...

7 months ago

Solved

Number of vertices of a hypercube

Return the number of vertices of a n-dimensional hypercube.

7 months ago

Solved

index of n^2 in magic(n)

input=5 magic matrix 17 24 1 8 15 23 5 7 14 16 4 6 13 20 22 10 ...

7 months ago

Solved

Find the biggest empty box

You are given a matrix that contains only ones and zeros. Think of the ones as columns in an otherwise empty floor plan. You wan...

7 months ago

Solved

Generate a Parasitic Number

This problem is the next step up from <http://www.mathworks.com/matlabcentral/cody/problems/156-parasitic-numbers Problem 156>. ...

7 months ago

Solved

UICBioE240 2.10

Given a vector of numbers, give the difference between the maximum and minimum values.

7 months ago

Solved

UICBioE240 problem 1.6

Find the tangent line of a right triangle given the two of the sides. So if A = [1 1] B = sqrt(2)

7 months ago

Solved

UICBioE240 problem 1.3

Find the length of a vector. So if A = [1 1 1 1 1] Then B = 5

7 months ago

Solved

UICBioE240 problem 1.11

Store a series of numbers into a 4 by 4 matrix, starting with the first few positions going right and down, and leaving the rest...

7 months ago

Solved

My Problem, Find the square of the horizontal concatenation of the third and fifth elements of a vector.

given the 1x5 vector x, y must be the square of the horizontal concatenation of the third and fifth elements. So, if x = [1 1 1 ...

7 months ago

Solved

UICBioE240 problem 1.12

The mathematical quantities e^x, ln x, and log x are calculated in Matlab using the expressions exp(x), log(x), and log10(x), re...

7 months ago

Solved

Matlab Basics II - Determine if an array has a 3rd dimension

For an array A, determine whether it has 3 dimensions, return 0 if x is only 2D, and 1 if x is 3D

7 months ago

Solved

square a vector-Given the variable x as your input, square it and put the result in y.

function y = (x)squared y = x; end

7 months ago

Solved

Baseball Pitch Question

One pitcher made 10 practice pitches during his warm up before the game. Using the given information, create a vector matrix an...

7 months ago

Solved

CARDS PROBLEM

Read my mind and tell me the card number that I have now in my hands.

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

7 months ago

Solved

Perl 4: unshift

_This is part of a series of perl function which were very helpful for many perl programmers. Could you implement it in Matlab?_...

7 months ago