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

6 years ago

Solved


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

6 years ago

Solved


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

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

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

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

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

6 years ago

Solved


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

6 years 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]

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

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

7 years ago

Solved


factorial
calculate x!

7 years ago

Solved


Square
square root of x

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

7 years ago

Solved


Find square of given number
Find Square of any number

7 years ago

Solved


Square root of number
Square root of given number.

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

7 years ago

Solved


to the 2 all elements
to the 2 all elements

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

7 years ago

Solved


Converts numbers into characters
Converts numbers into characters

7 years ago

Solved


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

7 years ago

Solved


easy problem
Find the last element of the array

7 years ago

Solved


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

7 years ago

Solved


calculate the length of matrix
input 1 array, calculate the length

7 years ago

Solved


Sum sum!!!
Sum the numbers from 1 to n

7 years ago

Solved


Calculate the square root of a number
Input a Output b = srt(a)

7 years ago

Solved


Sum Sum Sum!
Calculate the sum of the natural numbers from 1 to n

7 years ago

Solved


SAY 'OHYEAH'
Regardless of input, output the string 'OHYEAH'.

7 years ago

Solved


anshil's problem
Only anshil should solve ans = ''

7 years ago

Load more