Solved


Fibonacci sequence
Calculate the nth Fibonacci number. Given n, return f where f = fib(n) and f(1) = 1, f(2) = 1, f(3) = 2, ... Examples: Inpu...

27 Tage ago

Solved


Gray code
Given a decimal number, convert it to its corresponding gray code. 8 -- 1100 ; 4 -- 110 ; 17-- 11001;

27 Tage ago

Solved


Calculate the area of a circle
Given a circle of diameter x calculate its area

28 Tage ago

Solved


Convert Fahrenheit to Kelvin
Convert the value f in Fahrenheit to Kelvin

28 Tage ago

Solved


Quadratic equation
given three inputs (a, b, c) for the equation a*x^2+b*x+c=0; return 1 if the roots are complex (non zero imaginary), and 0 if th...

28 Tage ago

Solved


Check if integer is a prime number
Check if integer i is a prime number. Returns logical true '1' if it is.

29 Tage ago

Solved


Check if number is a square number
Test if integer i is a square number. Return logical true if it is.

29 Tage ago

Solved


Given a matrix A return a vector of the product of the elements in each column using a loop without using prod.
--------------------- for m: 3 1 3 3 10 1 9 1 9 4 1 4 5 6 5 ...

etwa ein Monat ago

Solved


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

etwa ein Monat ago

Solved


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

etwa ein Monat ago

Solved


Crop an Image
A grayscale image is represented as a matrix in MATLAB. Each matrix element represents a pixel in the image. The element values ...

etwa ein Monat ago

Solved


Find the Best Hotels
Given three input variables: * |hotels| - a list of hotel names * |ratings| - their ratings in a city * |cutoff| - the rat...

etwa ein Monat ago

Solved


Convert from Fahrenheit to Celsius
Given an input vector |F| containing temperature values in Fahrenheit, return an output vector |C| that contains the values in C...

etwa 2 Monate ago

Solved


Chào các bạn.
Cho 3 số. Tính tổng của chúng

etwa 2 Monate ago

Solved


Repeat elements of a vector
Repeat each elements of a given vector according to their values. say x=[1,2,1,3] y=[1,2,2,1,3,3,3]

etwa 2 Monate ago

Solved


Given a vector x, return vector y with all negative elements from the vector x.
Given a vector x, return vector y with all negative elements from the vector x if x has negative elements. Otherwise return 0. ...

etwa 2 Monate ago

Solved


Takuzu row
Takuzu row is one row in a logic puzzle of a rectangular grid. The rules are as follows: (1) The row is filled with 1s and 0s...

etwa 2 Monate ago

Solved


factorial
calculate x!

etwa 2 Monate ago

Solved


Square
square root of x

etwa 2 Monate ago

Solved


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

etwa 2 Monate ago

Solved


Find square of given number
Find Square of any number

etwa 2 Monate ago

Solved


Square root of number
Square root of given number.

etwa 2 Monate ago

Solved


Create a "+" flag
Given two odd numbers, [m, n], return a matrix of size m x n which has all elements of the centre column and centre row set as 1...

etwa 2 Monate ago

Solved


to the 2 all elements
to the 2 all elements

etwa 2 Monate ago

Solved


Check prime numbers
Let x, return 1 if x is a prime number, 0 otherwise e.g x = 7, return y =1; x = 6 return y = 0;

etwa 2 Monate ago

Solved


Converts numbers into characters
Converts numbers into characters

etwa 2 Monate ago

Solved


the average value of the elements
Calculate the average value of the elements in the array

etwa 2 Monate ago

Solved


easy problem
Find the last element of the array

etwa 2 Monate ago

Solved


Find the max element of the array
Find the max element of the array

etwa 2 Monate ago

Load more