문제를 풀었습니다


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

거의 10년 전

문제를 풀었습니다


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년 전

문제를 풀었습니다


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년 전

문제를 풀었습니다


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년 전

문제를 풀었습니다


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년 전

문제를 풀었습니다


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년 전

문제


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년 전 | 9 | 솔버 수: 45

문제를 풀었습니다


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년 전

문제


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년 전 | 9 | 솔버 수: 46

문제


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

거의 10년 전 | 8 | 솔버 수: 118

문제를 풀었습니다


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년 전

문제


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년 전 | 8 | 솔버 수: 64

문제를 풀었습니다


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년 전

문제


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

거의 10년 전 | 18 | 솔버 수: 2743

문제


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

거의 10년 전 | 11 | 솔버 수: 313

문제


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

거의 10년 전 | 8 | 솔버 수: 117

문제


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

거의 10년 전 | 9 | 솔버 수: 96

문제


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

거의 10년 전 | 8 | 솔버 수: 120

문제


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

거의 10년 전 | 9 | 솔버 수: 107

문제


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

거의 10년 전 | 10 | 솔버 수: 118

문제를 풀었습니다


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년 전

문제를 풀었습니다


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년 전

문제


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년 전 | 9 | 솔버 수: 51

문제


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

거의 10년 전 | 9 | 솔버 수: 64

문제를 풀었습니다


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년 전

문제


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년 전 | 8 | 솔버 수: 89

문제를 풀었습니다


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

거의 10년 전

문제를 풀었습니다


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

거의 10년 전

문제를 풀었습니다


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

거의 10년 전

문제를 풀었습니다


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

거의 10년 전

더 보기