Solved


Time reverse indices
Time reverse the index values as follows IndexIn = [7 1 0] IndexOut = [7 6 0] Note that the indices are zero based and so...

4 years ago

Solved


Combine complex conjugates first when computing the product of vector
Analytically, the product of complex conjugates yields a real result. When numerically computing the product of a vector contai...

4 years ago

Solved


User defined nextpow function
Create a function which will take 2 arguments as n and x, and return y, where, n^y >= abs(x). [ Similar to builtin "nextpow2" fu...

4 years ago

Solved


Max Change in Consecutive Elements
If an array is given as input then find the index of consecutive elements that represent maximum change. Example: Input ...

4 years ago

Problem


Easy Sequences 66: Fractional Part of Sum of Consecutive Powers over a Prime
Given three postive integers, , and , create the function , defined as follows: Where is the th prime and the s...

4 years ago | 1 | 6 solvers

Solved


Sum of two number using (regexp, varargin) comand?
Sum two number a &b and get there result in c using the rexp and varargin comand.

4 years ago

Problem


Easy Sequences 65: Fractional Part of Square Roots
The fractional part function of a positive real number , denoted as , is defined as: , where , is the 'floor' of . Thus, , and ...

4 years ago | 0 | 6 solvers

Solved


Negation the hard way
Write a function that has the following property: f(f(x)) = -x for any numeric array x. Note that there is no restriction on ...

4 years ago

Solved


Four quadrant inverse tangent function.
Create a function that returns an array P the same size as X and Y containing the element-by-element, four-quadrant inverse tang...

4 years ago

Solved


String Delimination and Outputting
In this problem, take an incoming string and deliminate the string based on spaces. Output the first string in between the space...

4 years ago

Solved


Matrix Ax=B problem
Take a incoming A and B vector, and solve for x

4 years ago

Solved


Matrix Generation from Vector Multiplication
Output the matrix generated from multiplying two vectors together

4 years ago

Solved


Calculate the values of a polynomial.
Calculate the values of a polynomial.Input parameter p - vector of polynomial coefficients, x - matrix of the argument values. ...

4 years ago

Solved


Find index of a string in a cell array
Write a function that finds the index at which the cell array of strings C contains the exact string S. So if C = {'twe...

4 years ago

Solved


Resizing Matrices
Take an 4x3 matrix, and resize it to a 2x6 matrix

4 years ago

Solved


Back to basics 24 - Symbolic variables
Covering some basic topics I haven't seen elsewhere on Cody. Given a string algebraic expression, return the symbolic variables...

4 years ago

Solved


System of Linear Equations

4 years ago

Solved


Falling on the Moon.

4 years ago

Solved


Count photos
Given n people, everyone must have pictures taken with everyone, each photo includes only two persons, please count the total nu...

4 years ago

Solved


An n-sided regular polygon is drawn within a circle whose radius is 'r', what will be the area of the polygon?
area of a polygon is p*a/2. where, p is the perimeter and a is the apothem i.e. the normal distance from center to any of the si...

4 years ago

Solved


Calculate feeling temperature before climbing a mountain
I sometimes climb a mountain. As is well known, when the altitude becomes 100 (m) higher, the temperature lowers by 0.6 degrees...

4 years ago

Solved


Sales Tax

4 years ago

Solved


List the dopey numbers
If vile numbers have binary representations that end with an even number of zeros (even vile), then numbers with binary represe...

4 years ago

Problem


Easy Sequences 64: Base-14 Arithmetic Function
For an integer , the base-14 arithmetic function, , is defined as follows: Convert to base-14, using the letters '' for digits...

4 years ago | 0 | 6 solvers

Solved


Basic: fft
Calculate the value using fft

4 years ago

Solved


Volume of Cylindrical Shell

4 years ago

Solved


List the vile numbers
Evil numbers, the subject of Cody Problem 2733 have an even number of ones in their binary representations, whereas odious numbe...

4 years ago

Solved


Find a Prime Number
Find a prime number from a vector Example: [2 51 8 65 19] a = 51

4 years ago

Solved


Babylonian method
Calculate the square root of a given positive number a using the Babylonian method (https://en.wikipedia.org/wiki/Methods_of_co...

4 years ago

Load more