Community Profile

# William

##### Last seen: Today
3,536 total contributions since 2012

View all

Contributions in
View by

Solved

Don't be Too Greedy!!
Refer to the prev problem <https://www.mathworks.com/matlabcentral/cody/problems/45450-don-t-be-too-greedy> For this time, ca...

1 day ago

Solved

Don't be Too Greedy!
Refer to the prev problem <https://www.mathworks.com/matlabcentral/cody/problems/45416-don-t-be-greedy> A list of assignments...

1 day ago

Solved

Create a matrix that counts up diagonally
Given a single input _N_, create a _N_ x _N_ matrix that counts from 1 : _N_ ², (along up-right diagonals, starting with 1 in th...

3 days ago

Solved

Find the area of ​​the square
There are *n²* circles inscribed in the square ABCD. The perimeter of each circle is *aπ* <<http://imgfz.com/i/3wzCeAT.png>> ...

8 days ago

Solved

Get the area of ​​the square.
Four circles are inscribed in the square ABCD. The perimeter of each circle is *aπ*. <<http://imgfz.com/i/UzgCJut.png>> Gi...

8 days ago

Solved

Distance Between Points
Being n the number of points (If n = 3 there would be 3 points: A, B and C). The distance between each pair of points increases...

9 days ago

Solved

5xa
Try out this test problem first. Given the variable x as your input, multiply it by two and put the result in y.

9 days ago

Solved

Maximize the production in a plant within equipment capacity
The goal of a certain manufacturing company is to maximize its production of goods per day. In the production flow, there is a s...

9 days ago

Solved

Place wastewater treatment processes in the correct order
There are many technologies for treating wastewater. For example, grit chambers are used to remove heavy solids, filtration is u...

9 days ago

Solved

Electric Flux
Calculate the flux passing through a surface. E is electric field, A is area.

9 days ago

Solved

3xa
Try out this test problem first. Given the variable x as your input, multiply it by two and put the result in y.

9 days ago

Solved

4xa
Try out this test problem first. Given the variable x as your input, multiply it by two and put the result in y.

9 days ago

Solved

Sub-sequence - 03
Given three sequences, find the length of the longest common subsequence. It is similar to the previous problem -- <https...

10 days ago

Solved

Integer complexity (Large numbers)
Inspired by <http://www.mathworks.com/matlabcentral/cody/problems/42831-integer-complexity Problem 42831>, this problem aims to ...

12 days ago

Solved

AK Sorting according to given order
Conventional ascending order of one digit number is [ 0, 1, 2, ......9]. Now this order is changed and stored in vector a. For e...

12 days ago

Solved

Momentum of an Object
P is momentum, m is mass, and v is velocity. Calculate the momentum for an object.

12 days ago

Solved

Equilateral Triangle
The length of one side of the equilateral triangle is a. Calculate the area of ​​the equilateral triangle.

12 days ago

Solved

Speed
x is distance, v is speed, and t is time. Calculate the speed for an object.

12 days ago

Solved

Newton's Motion Law
F is force, m is mass, and a is acceleration. Calculate the force for an object.

12 days ago

Solved

Matrix for beginners
Multiply x and y elemwise.

12 days ago

Solved

Matrix problem for beginners
Make a matrix [0,0,0;1,1,1;2,2,2]. X=[0,1,2]

12 days ago

Solved

Divide pi
Divide pi by x!

12 days ago

Solved

Multiply pi
Multiply pi with x!

12 days ago

Solved

List the households affected by leaks in water distribution
Consider the following water distribution network, where water is pumped uni-directionally from left to right: 8...

13 days ago

Solved

Sophie Germain prime
In number theory, a prime number p is a *Sophie Germain prime* if 2p + 1 is also prime. For example, 23 is a Sophie Germain prim...

16 days ago

Solved

Basic Operation with the middle number of odd matrix
# Take an odd matrix *like* 3-by-3 # Access the *middle element* of the matrix i.e in case of 3-by-3 matrix the index of the pa...

16 days ago

Solved

Inscribed circle in a triangle
A circle of radius r is inscribed in a triangle. In the figure, AC=x and BC=y. values of x & y are given. Find the ar...

16 days ago

Solved

Square root
Given x (a matrix), give back another matrix, where all the elements are the square roots of x's elements.

18 days ago

Solved

Square
X is a number, write a code, where Y should be the square of X.

18 days ago

Solved

Trace the path of a harmful chemical in an ecological network
An ecological network consists of the cycles of nature, such as the water cycle, the carbon cycle, the oxygen cycle, etc. Due to...

18 days ago