Community Profile

# Noah Sung

### MathWorks

167 total contributions since 2020

View details...

Contributions in
View by

Solved

length of a vector
Find twice the length of a given vector.

2 months ago

Solved

Test Problem; Create a 5x5 array containing all ones
This is a test for learning the process of creating a Cody problem. The goal of this test problem will be to create an array,...

2 months ago

Solved

Equal to their cube
Tell me three real numbers that are equal to their cubes?

2 months ago

Solved

Is My Wife Wrong?

2 months ago

Solved

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

2 months ago

Solved

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

2 months ago

Solved

Who is the smartest MATLAB programmer?
Who is the smartest MATLAB programmer? Examples: Input x = 'Is it Obama?' Output = 'Me!' Input x = 'Who ?' Ou...

2 months ago

Solved

Who knows the last digit of pi?
There is only one man who knows the last digit of pi, who is that man? Give the name of that man, who, by popular believe, can ...

2 months ago

Solved

Finding perimeter of a rectangle
A rectangle has a length of x centimeters and a width of w centimeters. Find the perimeter.

2 months ago

Solved

Guess
A random number between 1 and 10 is created for the variable y. Guess what its value is.

2 months ago

Solved

Y=X
Given an input variable x, output a variable y that is equal in value to x. Example: Input x = 1 Output y is 1 Inp...

2 months ago

Solved

Return 'on' or 'off'
When the input is true, return 'on', otherwise, return 'off'.

2 months ago

Solved

Number of problems
No, you don't read it wrong: this assignment is to return the number of this problem (and not the problem of this number).

2 months ago

Solved

Add a row of zeros on top of a matrix
Given a matrix, insert a row of zeros as the top row.

2 months ago

Solved

Convert yards to feet
The goal of this script is to convert a value given in yards to feet.

2 months ago

Solved

Is it column vector?
Is it column vector? Check vector for column vector without using iscolumn function.

2 months ago

Solved

Element by element multiplication of two vectors
Given two input vectors, return the element-by-element product. Example A = [1 2 3] B = [7 3 1] The answer should be...

2 months ago

Solved

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

2 months ago

Solved

Calculate volume of box
Calculate the volume of box,hiven its sides

2 months ago

Solved

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

2 months ago

Solved

Flipping
Write code that can reverse the vector without using any sort of loop. Example Given the input vector A = [ 1 2 3 4 5...

2 months ago

Solved

Celsius to Kelvin
Convert Celsius degrees to Kelvin temperature.

2 months ago

Solved

Concatenate two strings
Its very easy. Just concatenate two strings.

2 months ago

Solved

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

2 months ago

Solved

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

2 months ago

Solved

Number of digits in an integer
Specifies how many digits in a given integer. Example: in=100 ==> out=3

2 months ago

Solved

Is the input divisible by 3?
Return true if the input is divisible by 3 and false if not.

2 months ago

Solved

Tell me the slope
Tell me the slope, given a vector with horizontal run first and vertical rise next. Example input: x = [10 2];

2 months ago

Solved