Community Profile

# Rui Zhao

##### Last seen: 14일 전
187 2020 이후 총 참여 횟수

#### Rui Zhao's 배지

세부 정보 보기...

참여 게시물
보기 기준

해결됨

Convert a Cell Array into an Array
Given a square cell array: x = {'01', '56'; '234', '789'}; return a single character array: y = '0123456789'

3달 전

해결됨

Cell Counting: How Many Draws?
You are given a cell array containing information about a number of soccer games. Each cell contains one of the following: * ...

3달 전

해결됨

Is My Wife Wrong?

3달 전

해결됨

Area of a Square
Inside a square is a circle with radius r. What is the area of the square?

3달 전

해결됨

Area of a disk
Find the area of a disk or circle. x= radius of the disk.

3달 전

해결됨

Insert zeros into vector
Insert zeros after each elements in the vector. Number of zeros is specified as the input parameter. For example: x = [1 ...

3달 전

해결됨

factorial of a number x
Factorial of a number x

3달 전

해결됨

Find the sum of n squares
What is the sum of the squares of the first n integers?

3달 전

해결됨

Speed of car
Calculate the Speed of car given its Distance travelled and time taken in x and y respectively

3달 전

해결됨

Find out value of sine given by degree.
Find out value of sine given by degree. If theta=30, it's value must be 0.5.

3달 전

해결됨

Volume and area of a sphere
Input(r) - radius Output([v,s]) - volume and area

3달 전

해결됨

Calculate the sum of two numbers. Example input = [2 3] output = 5

3달 전

해결됨

Remove element(s) from cell array
You can easily remove an element (or a column in any dimension) from a normal matrix, but assigning that value (or range) empty....

3달 전

해결됨

Calculate a Damped Sinusoid
The equation of a damped sinusoid can be written as |y = A.&#8519;^(-&lambda;t)*cos(2πft)| where |A|, |&lambda;|, and |f| ...

3달 전

해결됨

Solve a System of Linear Equations
*Example*: If a system of linear equations in _x&#8321_ and _x&#8322_ is: 2 _x&#8321;_ + _x&#8322;_ = 2 _x&#8321;...

3달 전

해결됨

Cell joiner
You are given a cell array of strings and a string delimiter. You need to produce one string which is composed of each string fr...

3달 전

해결됨

Right Triangle Side Lengths (Inspired by Project Euler Problem 39)
If _p_ is the perimeter of a right angle triangle with integral length sides, { _a_, _b_, _c_ }, there are exactly three solutio...

3달 전

해결됨

Is the Point in a Triangle?
Check whether a point or multiple points is/are in a triangle with three corners Points = [x, y]; Triangle = [x1, y1; x...

3달 전

해결됨

Divide by 4
Given the variable x as your input, divide it by 4 and put the result in y.

3달 전

해결됨

Times 3 problem
When you enter the number, it should return the number multiplied by 3

3달 전

해결됨

Sort a list of complex numbers based on far they are from the origin.
Given a list of complex numbers z, return a list zSorted such that the numbers that are farthest from the origin (0+0i) appear f...

4달 전

해결됨

Square the input
Given a scalar or vector x, return the square of each element. Example x = [7 2] answer = [49 4]

4달 전

해결됨

Duplicate each element of a vector.
for an n-dimensional vector x, the function should return another vector 2n-dimension which each element is repeated twice. Ex...

4달 전

해결됨

De-primed
Write a function that will multiply every prime number in the array or matrix by two, leaving all other numbers the same, and re...

4달 전

해결됨

Bullseye Matrix
Given n (always odd), return output a that has concentric rings of the numbers 1 through (n+1)/2 around the center point. Exampl...

4달 전

해결됨

Remove and Sort
Given a randomized array n, sort it and remove all odd integers. n=5 y = [2 4]

4달 전

해결됨

Sum of odd numbers in a matrix
Find the sum of all the odd numbers in a matrix. Example x = [2 3 5 7 1 4 11] y = 27

4달 전

해결됨

reverse string
input='rama' output='amar'

4달 전

해결됨

Volume of a box
Given a box with a length a, width b, and height c. Solve the volume of the box.

4달 전

해결됨

Multiply by 3
Given the variable x as your input, multiply it by three and put the result in y.

4달 전