Solved


Integer indexing array: Weekend box office
The row array movieBoxOffice stores the amount of money a movie makes (in millions of $) for the 7 days of a week, starting with...

10 years ago

Solved


Logic variables
* Assign isAvailable with true.

10 years ago

Solved


Determine Whether an array is empty
Input a matrix x, output y is TRUE if x is empty, otherwise FALSE.

10 years ago

Solved


Number of Horns on a unicorn!
Calculate the number of horns on a *unicorn*! And I'm talking about a unicorn with not more than one horn on it!

10 years ago

Solved


Add two numbers
Calculate the sum of two numbers. Example input = [2 3] output = 5

10 years ago

Solved


Increment a number, given its digits
Take as input an array of digits (e.g. x = [1 2 3]) and output an array of digits that is that number "incremented" properly, (i...

10 years ago

Solved


Compute a dot product of two vectors x and y
x and y are input vectors, d is a number and contains their dot product

10 years ago

Solved


Find a subset that divides the vector into equal halves
Given a vector x, return the indices to elements that will sum to exactly half of the sum of all elements. Example: Inpu...

10 years ago

Solved


Make a run-length companion vector
Given a vector x, return a vector r that indicates the run length of any value in x. Each element in r shows how many times the ...

10 years ago

Solved


Spot the outlier
All points except for one lie on a line. Which one is the outlier? Example: You are given a list of x-y pairs in a column ...

10 years ago

Problem


Find the outcast
All pairs have the same difference except for one. Output the index of the latter Example: input =[0 1; 1 0; 2 3; 4 5;] ou...

10 years ago | 9 | 45 solvers

Solved


Remove all the consonants
Remove all the consonants in the given phrase. Example: Input s1 = 'Jack and Jill went up the hill'; Output s2 is 'a ...

10 years ago

Problem


Modified run-length companion vector
Given a vector x, return a vector that indicates the run length of any value in x. Each element in output vector shows how many ...

10 years ago | 9 | 46 solvers

Problem


Create a code for XNOR
Given two inputs, output XNOR of those two

10 years ago | 8 | 118 solvers

Solved


Program an exclusive OR operation with logical operators
Program an exclusive or operation *without* using the MATLAB function xor. Use logical operators like |, &, ~, ... instead. ...

10 years ago

Problem


Encode Me From The Past
Given this input x = 2, 5, 1, 2, 4, 1, 1, 3 output should be (Five 2's, Two 1's, One 4, Three 1's) [2 2 2 2 2 1 1 4 1 1 1]

10 years ago | 8 | 64 solvers

Solved


Reverse Run-Length Encoder
Given a "counting sequence" vector x, construct the original sequence y. A counting sequence is formed by "counting" the entrie...

10 years ago

Problem


Convert radians to degrees
Given input in radians, output to degrees

10 years ago | 18 | 2754 solvers

Problem


Convert degrees to radians
Given input in degrees, output to radians

10 years ago | 11 | 313 solvers

Problem


Create tangent function out of sine function only
Please don't use cosine and tangent functions

10 years ago | 8 | 117 solvers

Problem


Create tangent function out of cosine only
Please don't use tangent and sine functions

10 years ago | 9 | 96 solvers

Problem


Create tangent function out of sin and cos
Please don't use tan(x) directly

10 years ago | 8 | 120 solvers

Problem


Create sine function out of cosine
Please don't use sin(x) directly

10 years ago | 9 | 107 solvers

Problem


Create cosine function out of sine
Please dont use cos(x) directly

10 years ago | 10 | 118 solvers

Solved


Rotate Matrix Depending on the input
Rotate matrix (CounterClockwise) via 90, 180 or -90 depending on the input Ex. a = [1 2 3; 4 5 6; 7 8 9] b = 90; ...

10 years ago

Solved


Clipper Function
Create a function that emulates a clipper circuit Given sin wave, t and the constant value for clipping, and the direction to re...

10 years ago

Problem


Clipper Function
Create a function that emulates a clipper circuit Given sin wave, t and the constant value for clipping, and the direction to re...

10 years ago | 9 | 51 solvers

Problem


Clamper Function
Create a function that emulates a clamper circuit Given sin wave, t and the constant value for clamping

10 years ago | 9 | 64 solvers

Solved


Multielement indexing of a row array
The row array birthRateChina stores the China birth rate (per 1000 people) for years 2000 to 2012. Write a statement that create...

10 years ago

Problem


Rotate Matrix Depending on the input
Rotate matrix (CounterClockwise) via 90, 180 or -90 depending on the input Ex. a = [1 2 3; 4 5 6; 7 8 9] b = 90; ...

10 years ago | 8 | 89 solvers

Load more