Resuelto


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

casi 10 años hace

Resuelto


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

casi 10 años hace

Resuelto


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

casi 10 años hace

Resuelto


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

casi 10 años hace

Resuelto


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

casi 10 años hace

Problema


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

casi 10 años hace | 9 | 45 solvers

Resuelto


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

casi 10 años hace

Problema


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

casi 10 años hace | 9 | 46 solvers

Problema


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

casi 10 años hace | 8 | 118 solvers

Resuelto


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

casi 10 años hace

Problema


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]

casi 10 años hace | 8 | 64 solvers

Resuelto


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

casi 10 años hace

Problema


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

casi 10 años hace | 18 | 2741 solvers

Problema


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

casi 10 años hace | 11 | 313 solvers

Problema


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

casi 10 años hace | 8 | 117 solvers

Problema


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

casi 10 años hace | 9 | 96 solvers

Problema


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

casi 10 años hace | 8 | 120 solvers

Problema


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

casi 10 años hace | 9 | 107 solvers

Problema


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

casi 10 años hace | 10 | 118 solvers

Resuelto


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

casi 10 años hace

Resuelto


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

casi 10 años hace

Problema


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

casi 10 años hace | 9 | 51 solvers

Problema


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

casi 10 años hace | 9 | 64 solvers

Resuelto


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

casi 10 años hace

Problema


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

casi 10 años hace | 8 | 89 solvers

Resuelto


Make a half wave rectifier
Produce a signal that outputs the given sine wave source when it is greater than zero and outputs zero when it is less than zero...

casi 10 años hace

Resuelto


Make a full wave rectifier
Produce a full wave rectifier waveform for the given sine wave source. For a sine wave input, the output of the full wave rec...

casi 10 años hace

Resuelto


How many trades represent all the profit?
Given a list of results from trades made: [1 3 -4 2 -1 2 3] We can add them up to see this series of trades made a profit ...

casi 10 años hace

Resuelto


Add offset to a signal
Produce the following signal: <<http://blogs.mathworks.com/images/seth/cody/add-offset-eqn.png>> You should see a downward...

casi 10 años hace

Resuelto


Produce a sine wave
Produce a sine wave with amplitude 3: <<http://blogs.mathworks.com/images/seth/cody/sine-eqn.png>>

casi 10 años hace

Cargar más