문제를 풀었습니다


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

거의 8년 전

문제를 풀었습니다


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

거의 8년 전

문제를 풀었습니다


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

거의 8년 전

문제를 풀었습니다


Determinant of a 3x3 Matrix
Return the determinant of a 3x3 matrix. The built-in Matlab function det is not allowed.

거의 8년 전

문제를 풀었습니다


Convert decimal to binary and then generate the minimum binary it can with jumbling
input is 10 --> 1010 output should be 3 --> 0011 input 23 --> 10111 output should be 15 --> 01111

거의 8년 전

문제를 풀었습니다


Beat the test suite if you can :)
Solve this problem based on clues in the test suite.

거의 8년 전

문제를 풀었습니다


Return the Nth Output from an Input Command
*Description* Given _F_, a cell array whose first element is a function handle and subsequent elements are arguments, return ...

거의 8년 전

문제를 풀었습니다


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

거의 8년 전

문제를 풀었습니다


Highly divisible triangular number (inspired by Project Euler 12)
Triangular numbers can be calculated by the sum from 1 to n. For example, the first 10 triangular numbers are: 1, 3, 6, 10, ...

거의 8년 전

문제를 풀었습니다


Solve The Equation
The coefficients of a system of equations are given in two vectors, x1 and x2. Write a function to solve the equation and return...

거의 8년 전

문제를 풀었습니다


Pairwise Euclidean Distance
Given two matrices A,B of dimensions NxK and NxL respectively, calculate the pairwise euclidean distance of all vectors (columns...

거의 8년 전

문제를 풀었습니다


Convert to Binary Coded Decimal
Convert from decimal representation to <http://en.wikipedia.org/wiki/Binary-coded_decimal Binary Code Decimal> (or BCD) represen...

거의 8년 전

문제를 풀었습니다


Mean ignoring NaNs
Define a function that behaves in the same way as mean(x) and mean(x,d) except that it ignores NaNs (unless all of the values be...

거의 8년 전

문제를 풀었습니다


Non trivial identities - reshape
Return x by reshaping it.

거의 8년 전

문제를 풀었습니다


Cull vector elements that contain a specified digit
Given inputs of (1) a row vector and (2) a digit, identify the elements of that vector that contain the digit, remove them, and ...

거의 8년 전

문제를 풀었습니다


Rank of magic square (for beginners)
Compute the rank r of a magic square of order n WITHOUT rank and magic functions.

거의 8년 전

문제를 풀었습니다


Negation and new variables
Inspired by Problem 1827 by Andrew Newell. Write a function that has the following property: (x~=y) neg3(x)=x; neg3...

거의 8년 전

문제를 풀었습니다


Modified Upper Matrix Mock
Given a vector v=[1 3 6 9 11], turn it into a matrix 'ramp' like so: m=[1 3 6 9 11; 0 3 6 9 11; 0 0 6 9 11; 0 0 0 9 11; 0 0 0...

거의 8년 전

문제를 풀었습니다


Get all prime factors
List the prime factors for the input number, in decreasing order. List each factor. If the prime factor occurs twice, list it as...

거의 8년 전

문제를 풀었습니다


Create Truth Table of Size according to input
Create a Truth Table Example: n = 3 output = [0 0 0; 0 0 1; 0 1 0; 0 1 1; 1 0 0; 1 0 1; 1 1 0; 1 1 1]

거의 8년 전

문제를 풀었습니다


I told you not separate me, but you did :( - ACDC
Given input vector, output it's DC and AC value Example: input = 0 1 -1 0 ac = 0 1 -1 0 dc = 0

거의 8년 전

문제를 풀었습니다


Avengers Assemble!
Given matrix with so many zeroes, trim those zeroes and output a matrix joining all nnz elements Example: input = [0 0 0 0 0...

거의 8년 전

문제를 풀었습니다


Find the mode of the given input
Find the statistical <http://en.wikipedia.org/wiki/Mode_(statistics)/ mode> of the given input. Example: If X is matr...

거의 8년 전

문제를 풀었습니다


Find out phase angle of second order system.
Find out the phase angle of a second order system. In a control system, the phase angle is given by the inverse of cos.

거의 8년 전

문제를 풀었습니다


Find out Harmonic mean.
Find out Harmonic mean.

거의 8년 전

문제를 풀었습니다


Try and Catch Simple Example
Try and Catch Simple Example <http://in.mathworks.com/help/matlab/ref/try.html Example> Vector x=[1 4 6 8 10]; Create...

거의 8년 전

문제를 풀었습니다


Add two hex numbers
Add two hex numbers

거의 8년 전

문제를 풀었습니다


Converter temp 0 to 200 degree C to 4 to 20mA
Converter temp 0 to 200 degree C to 4 to 20mA (It is used in transmitter)

거의 8년 전

문제를 풀었습니다


Convert decimal to hex as shown in test cases
Convert decimal to hex as shown in test cases.

거의 8년 전

문제를 풀었습니다


Fun Race
* Given two unary functions foo and goo. * Check whether foo(0) runs faster than goo(0). * Output 1 if foo is faster, otherwis...

거의 8년 전

더 보기