Community Profile

Seung Ho Yoo

103 2016 年以降の合計貢献数

Seung Ho Yoo's バッジ

Area of a triangle
A triangle is given with base *'b'* ,vertical hight *'h'* . then find it's area.

4年以上 前

Calculate area of sector
A=function(r,seta) r is radius of sector, seta is angle of sector, and A is its area. Area of sector A is defined as 0.5*(r^2...

4年以上 前

find the surface area of a cube
given cube side length x, find the surface area of the cube, set it equal to y

4年以上 前

Area of a circle
Find the value for area of the circle if diameter is given

4年以上 前

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

4年以上 前

Find hen's weight.
If hen weights x kilos on two legs, how much does it weights on one leg? Output the result.

4年以上 前

Solve t^(a*x^2+b*x+c)=s
Solve t^(a*x^2+b*x+c)=s. Return x vector as result. Example a=1, b=2, c=1, t=3, s=15. Result x(1)= 0.5700 x(2)=-2.5700 H...

4年以上 前

Rotate a Matrix by 90 degrees
Rotate a Matrix by 90 degrees Example: If the input is: X = 1 2 3 4 5 6 7 8 9 ...

4年以上 前

Compute a dot product of two vectors x and y
x and y are input vectors, d is a number and contains their dot product

4年以上 前

Fahrenheit to Celsius using multiple statements
°C = (°F - 32) x 5/9 * Write a statement that assigns fractionalMultiplier with 5/9. * Write a second statement that assign...

4年以上 前

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

4年以上 前

Plus x: A first program
_Solve this problem in Mathwork's online Cody system._ Write a statement that assigns y with 5 plus x. Ex: If input x = 2,...

4年以上 前

Back to basics 22 - Rotate a matrix
Covering some basic topics I haven't seen elsewhere on Cody. Rotate the input matrix 90 degrees counterclockwise (e.g. [1 2; ...

4年以上 前

Get the length of a given vector
Given a vector x, the output y should equal the length of x.

4年以上 前

Sorted highest to lowest?
Return 1 if the input is sorted from highest to lowest, 0 if not. Example: 1:7 -> 0 [7 5 2] -> 1

4年以上 前

determine if
determine if the elements of a matrix is a nan and return true

4年以上 前

Back to basics 6 - Column Vector
Covering some basic topics I haven't seen elsewhere on Cody. Given an input vector, output true or false whether it is a colu...

4年以上 前

Sum of diagonal of a square matrix
If x = [1 2 4; 3 4 5; 5 6 7] then y should be the sum of the diagonals of the matrix y = 1 + 4 + 7 = 12

4年以上 前

Flipping a Matrix
Flipping matrix up and down. If a central row is exists, leave it, and flip remaining rows. Example Mat = magic(3) ...

4年以上 前

y=x
y=x

4年以上 前

'Price of pizza!'
If you want to check pizza's price, try this! price is proportional to its volume, so you have to multiply 0.1(\$) to pizza's v...

4年以上 前

Joules!
1J = 101.325 L/atm Write a statement that assigns fractionalMultiplier with 101.325 Write a second statement that assigns Jo...

4年以上 前

Change input vector
If a input vector is [3, 2, 6, 1, 6], the output vector is [3, 2, 6, 1, 6] + [1, 2, 3, 4, 5] = [4, 4, 9, 5, 11].

4年以上 前

multiply 2 by 2
multiply 2 by 2

4年以上 前

given x, y should be 1 greater than the input.

4年以上 前

Sum of the Matrix Elements
Add up all the elements in a NxM matrix where N signifies the number of the rows and M signifies the number of the columns. E...

4年以上 前

Complex number
For complex number c=a+bi, write code that will add a and b together.

4年以上 前

Given an input variable x, output a variable y that is 7 greater than x. Example: Input x = 1 Output y is 8 Input ...

4年以上 前

cube of number
find cube of number

4年以上 前

Sum of cubes
Write a program to determine sum of cubes of first n odd numbers.

4年以上 前