Gelöst


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

mehr als 7 Jahre vor

Gelöst


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

mehr als 7 Jahre vor

Gelöst


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

mehr als 7 Jahre vor

Gelöst


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

mehr als 7 Jahre vor

Gelöst


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

mehr als 7 Jahre vor

Gelöst


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

mehr als 7 Jahre vor

Gelöst


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

mehr als 7 Jahre vor

Gelöst


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

mehr als 7 Jahre vor

Gelöst


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

mehr als 7 Jahre vor

Gelöst


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

mehr als 7 Jahre vor

Gelöst


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

mehr als 7 Jahre vor

Gelöst


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

mehr als 7 Jahre vor

Gelöst


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

mehr als 7 Jahre vor

Gelöst


Non trivial identities - reshape
Return x by reshaping it.

mehr als 7 Jahre vor

Gelöst


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

mehr als 7 Jahre vor

Gelöst


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

mehr als 7 Jahre vor

Gelöst


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

mehr als 7 Jahre vor

Gelöst


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

mehr als 7 Jahre vor

Gelöst


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

mehr als 7 Jahre vor

Gelöst


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]

mehr als 7 Jahre vor

Gelöst


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

mehr als 7 Jahre vor

Gelöst


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

mehr als 7 Jahre vor

Gelöst


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

mehr als 7 Jahre vor

Gelöst


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.

mehr als 7 Jahre vor

Gelöst


Find out Harmonic mean.
Find out Harmonic mean.

mehr als 7 Jahre vor

Gelöst


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

mehr als 7 Jahre vor

Gelöst


Add two hex numbers
Add two hex numbers

mehr als 7 Jahre vor

Gelöst


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)

mehr als 7 Jahre vor

Gelöst


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

mehr als 7 Jahre vor

Gelöst


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

mehr als 7 Jahre vor

Mehr laden