Solved


Is my wife right?
Regardless of input, output the string 'yes'.

2 days ago

Solved


Find the largest value in the 3D matrix
Given a 3D matrix A, find the largest value. Example >> A = 1:9; >> A = reshape(A,[3 1 3]); >> islargest(A) a...

3 days ago

Solved


Flip the vector from right to left
Flip the vector from right to left. Examples x=[1:5], then y=[5 4 3 2 1] x=[1 4 6], then y=[6 4 1]; Request not to use d...

3 days ago

Solved


Draw a '0' in a one matrix!

3 days ago

Solved


Is A the inverse of B?
Given a matrix A and a matrix B, is A the inverse of B? >>A=[2,4;3,5]; >>B=[-2.5,2;1.5,-1]; >>isInverse...

3 days ago

Solved


Write a code that will follow the equation y = x * (x + x) * x.
If x = 5, y = 5 * (5+5) * 5 = 250

3 days ago

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

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

3 days ago

Solved


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

3 days ago

Solved


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

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

3 days ago

Solved


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

3 days ago

Solved


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

3 days ago

Solved


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

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

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

3 days ago

Solved


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

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

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

3 days ago

Solved


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

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

3 days ago

Solved


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

3 days ago

Solved


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

3 days ago

Solved


Celsius to Fahrenheit converter
Convert Celsius to Fahrenheit degrees.

4 days ago

Solved


Fahrenheit to Celsius converter
Convert Fahrenheit to Celsius degrees.

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

4 days ago

Solved


easy problem
Find the last element of the array

4 days ago

Solved


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

4 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

4 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'

4 days ago

Load more