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

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

7 mois ago

Solved

Matrix Generation from Vector Multiplication

Output the matrix generated from multiplying two vectors together

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

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

7 mois ago

Solved

Vector indexing: lower than mean

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

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

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

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

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

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

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

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

7 mois ago

Solved

Find a Prime Number

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

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

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

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

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

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

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

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

7 mois ago