Summation of array
Given an array, Find the sum of all of the elements in it Examples: Input x = [1 2 3 5; 4 5 6 7]; Output y is 33

6ヶ月 前

If-then-else
Complete the function below such that if the value of x is in the range 10 to 14, inclusive, the value 18 is assigned to y. Oth...

6ヶ月 前

Count decimal digits of a number
* Given an integer number you have to return the number of its digits. * For example 248 has 3 digits and 1589 has 4 digits ...

6ヶ月 前

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

6ヶ月 前

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

6ヶ月 前

Max of a Vector
Write a function to return the max of a vector

7ヶ月 前

Celsius to Kelvin
Convert Celsius degrees to Kelvin temperature.

7ヶ月 前

Do you like your boss? Answer can be any string! For example: Boss = 'Do you like your boss?'; Output = 'yes' or ...

7ヶ月 前

Square a Number
Given an input x, return y, which is equal to the square of x.

8ヶ月 前

find the roots of a quadratic equation
for e.g x = [ 2 -1 -3] y = [1.5 -1]

8ヶ月 前

Roots
Find out the roots of a given polynomial equation.Given are the coefficients of the equation.

8ヶ月 前

Create a Matrix of Zeros
Given an input x, create a square matrix y of zeros with x rows and x columns.

8ヶ月 前

Min of a Matrix
Return the minimum value in the given matrix.

8ヶ月 前

Find the nearest integer
Given a vector of integers and a real number find the closest integer. EX: >> a = [2 4 5 6 8 10]; >> b = 4.6; >> nea...

8ヶ月 前

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

8ヶ月 前

Pell numbers
Find the nth pell number <https://en.wikipedia.org/wiki/Pell_number>

8ヶ月 前

Yoonir - 01
Find the area of a five-pointed star inscribed in a circle of radius r.

8ヶ月 前

Find out next state (NS) of T Flip-Flop.
Find out next state (NS) of T Flip-Flop based on previous state (PS), inputs. Learn more about T Flip-Flop theory here: <htt...

8ヶ月 前

Find the next state of a JK Flip-Flop
Find the next state (NS) of a JK Flip-Flop based on previous state (PS), inputs. Learn more about JK Flip-Flop theory here: ...

8ヶ月 前

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

8ヶ月 前

Rotate a Matrix
Input a Matrix x, Output y is the matrix rotating x 90 degrees clockwise

8ヶ月 前

Free passes for everyone!
_Simply return the name of the coolest numerical computation software ever_ *Extra reward* (get a _freepass_): Once a mont...

8ヶ月 前

Project Euler: Problem 10, Sum of Primes
The sum of the primes below 10 is 2 + 3 + 5 + 7 = 17. Find the sum of all the primes below the input, N. Thank you <http:/...

8ヶ月 前

given 3 sides, find area of this triangle
1:3 -> 0; 3:5 -> 6

8ヶ月 前

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

8ヶ月 前

Project Euler: Problem 6, Natural numbers, squares and sums.
The sum of the squares of the first ten natural numbers is, 1^2 + 2^2 + ... + 10^2 = 385 The square of the sum of the first ...

8ヶ月 前

Is my wife right? Now with even more wrong husband
Again, as in "Is my wife right?" ( <http://www.mathworks.com/matlabcentral/cody/problems/149-is-my-wife-right> ), answer 'yes' r...

8ヶ月 前

Higher! Lower!
My kids have started to play the "I'm thinking of a number between X and Y" game in the car on trips to and from their swim less...

8ヶ月 前

Remove the air bubbles
Given a matrix a, return a matrix b in which all the zeros have "bubbled" to the top. That is, any zeros in a given column shoul...

9ヶ月 前

~~~~~~~ WAVE ~~~~~~~~~
|The WAVE generator| Once upon a time there was a river. 'Sum' was passing by the river. He saw the water of the river that w...

9ヶ月 前