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 months 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 months ago

Solved

Matrix Generation from Vector Multiplication

Output the matrix generated from multiplying two vectors together

4 months 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 months 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 months ago

Solved

Vector indexing: lower than mean

Find all values in a vector lower than the mean of the vector

4 months 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 months 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 months 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 months 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 months 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 months 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 months ago | 0 | 3 solvers

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 months ago

Solved

Find a Prime Number

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

4 months 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 months ago

Solved

remove nans fast

There are several ways to locate and remove nans in a matrix, and return an 1d row vector. In this problem the challenge is ...

4 months ago

Solved

Given n, create n random numbers such that their standard deviation is also n.

Given n, create n random numbers such that their standard deviation is also n.

5 months ago

Problem

Easy Sequences 63: Base-63 Arithmetic Functions

In this exercise we are required to implement 7 basic 'unsigned integer' arithmetic functions in base-63: to63(x) - convert...

5 months ago | 1 | 1 solver

Solved

Draw 'P' !!!

Draw a n by n matrix 'P' using 0s and 1s. (n is odd and greater than 4) if n=5 , then the output will be [1 1 1 1 1 1 0 0 0...

5 months ago

Solved

List the Beatriz numbers

Write a function to find integers less than or equal to an input value that solve the equation . The function gives the sum o...

5 months ago

Solved

Shuffle

Shuffle a vector by breaking it up to segments of |n| elements, and rearranging them in a reversed order. For example, the ve...

5 months ago