Gelöst


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

etwa 10 Jahre vor

Gelöst


Logic variables
* Assign isAvailable with true.

etwa 10 Jahre vor

Gelöst


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

etwa 10 Jahre vor

Gelöst


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!

etwa 10 Jahre vor

Gelöst


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

etwa 10 Jahre vor

Gelöst


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

etwa 10 Jahre vor

Gelöst


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

etwa 10 Jahre vor

Gelöst


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

etwa 10 Jahre vor

Gelöst


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

etwa 10 Jahre vor

Gelöst


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

etwa 10 Jahre vor

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

etwa 10 Jahre vor | 9 | 45 Lösungsvorschläge

Gelöst


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

etwa 10 Jahre vor

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

etwa 10 Jahre vor | 9 | 46 Lösungsvorschläge

Problem


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

etwa 10 Jahre vor | 8 | 118 Lösungsvorschläge

Gelöst


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

etwa 10 Jahre vor

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]

etwa 10 Jahre vor | 8 | 64 Lösungsvorschläge

Gelöst


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

etwa 10 Jahre vor

Problem


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

etwa 10 Jahre vor | 18 | 2747 Lösungsvorschläge

Problem


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

etwa 10 Jahre vor | 11 | 313 Lösungsvorschläge

Problem


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

etwa 10 Jahre vor | 8 | 117 Lösungsvorschläge

Problem


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

etwa 10 Jahre vor | 9 | 96 Lösungsvorschläge

Problem


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

etwa 10 Jahre vor | 8 | 120 Lösungsvorschläge

Problem


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

etwa 10 Jahre vor | 9 | 107 Lösungsvorschläge

Problem


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

etwa 10 Jahre vor | 10 | 118 Lösungsvorschläge

Gelöst


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

etwa 10 Jahre vor

Gelöst


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

etwa 10 Jahre vor

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

etwa 10 Jahre vor | 9 | 51 Lösungsvorschläge

Problem


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

etwa 10 Jahre vor | 9 | 64 Lösungsvorschläge

Gelöst


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

etwa 10 Jahre vor

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

etwa 10 Jahre vor | 8 | 89 Lösungsvorschläge

Mehr laden