Solved


Determine if a number is prime
Given a positive integer n, return 1 if it is prime, 0 otherwise. Example: is_prime(7) returns 1, is_prime(4) returns 0

28 days 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 Celsi...

28 days ago

Solved


Average of square wave
given positive and negative peak , calculate dc level, 50% duty cycle

29 days ago

Solved


convert matrix to single column
given any matrix, convert it to single column

29 days ago

Solved


Sum of the Multiplication of Vectors
Given the vectors x and y as input, multiply the vectors and return the summation of its elements. Example: x = [1 2 ...

29 days ago

Solved


Square root of a number
Write a code that will output the square root of x.

29 days ago

Solved


Area of a circle
Given the radius x, y would be the area of a circle. Pi = 3.1416

29 days ago

Solved


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

29 days ago

Solved


Sum of Two Numbers
Given two integer numbers x and y, calculate their sum and put it in z. Examples: Inputs x = 2, y = 4 Output z is 6 ...

29 days ago

Solved


Matlab Basics II - Free Fall
An object freely falling from rest under gravity covers a distance x given by: x = 1/2 gt^2 write a function that calculat...

29 days ago

Solved


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

29 days ago

Solved


Determine if input is divisible by three.
Given a positive integer, n, determine if n is divisible by 3. If yes, the function should output true. If no, false.

29 days ago

Solved


Volume of a box
Given a box with a length a, width b, and height c. Solve the volume of the box.

29 days ago

Solved


Vectors counting by 2
Create a vector numbers from 7 to 15 in increments of 2

29 days ago

Solved


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

29 days ago

Solved


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

29 days ago

Solved


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

29 days ago

Solved


Celsius to Fahrenheit converter
Convert Celsius to Fahrenheit degrees.

29 days ago

Solved


Fahrenheit to Celsius converter
Convert Fahrenheit to Celsius degrees.

29 days ago

Solved


Convert Fahrenheit to Celsius
Calculate the Celsius temperature C given the Fahrenheit temperature F. Examples: Input F = 90 Output C is 32.22 I...

29 days ago

Solved


easy problem
Find the last element of the array

29 days ago

Solved


The sum of the numbers in the vector
eg. [1,2,3]---->SUM=6

29 days ago

Solved


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

29 days ago

Solved


Reverse the characters of a string
Given a string, return the string with characters in reverse order. Example: rev_string('hello') returns 'olleh'

29 days ago

Solved


Converts numbers into characters
Converts numbers into characters

29 days ago

Solved


Rotate Matrix @180 degree
Rotate Matrix @180 degree Example A=[8 1 6; 3 5 7; 4 9 2], then answer would be [2 9 4;...

29 days ago

Solved


to the 2 all elements
to the 2 all elements

29 days ago

Solved


Double all elements in the array
Duplicate all elements in the array

29 days ago

Solved


Square root
Given x (a matrix), give back another matrix, where all the elements are the square roots of x's elements.

29 days ago

Solved


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

29 days ago

Load more