A résolu


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

plus de 7 ans il y a

A résolu


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

plus de 7 ans il y a

A résolu


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

plus de 7 ans il y a

A résolu


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

plus de 7 ans il y a

A résolu


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

plus de 7 ans il y a

A résolu


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

plus de 7 ans il y a

A résolu


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

plus de 7 ans il y a

A résolu


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

plus de 7 ans il y a

A résolu


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

plus de 7 ans il y a

A résolu


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

plus de 7 ans il y a

A résolu


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

plus de 7 ans il y a

A résolu


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

plus de 7 ans il y a

A résolu


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

plus de 7 ans il y a

A résolu


Non trivial identities - reshape
Return x by reshaping it.

plus de 7 ans il y a

A résolu


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

plus de 7 ans il y a

A résolu


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

plus de 7 ans il y a

A résolu


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

plus de 7 ans il y a

A résolu


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

plus de 7 ans il y a

A résolu


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

plus de 7 ans il y a

A résolu


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]

plus de 7 ans il y a

A résolu


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

plus de 7 ans il y a

A résolu


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

plus de 7 ans il y a

A résolu


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

plus de 7 ans il y a

A résolu


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.

plus de 7 ans il y a

A résolu


Find out Harmonic mean.
Find out Harmonic mean.

plus de 7 ans il y a

A résolu


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

plus de 7 ans il y a

A résolu


Add two hex numbers
Add two hex numbers

plus de 7 ans il y a

A résolu


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)

plus de 7 ans il y a

A résolu


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

plus de 7 ans il y a

A résolu


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

plus de 7 ans il y a

Charger plus