Gelöst


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

mehr als 4 Jahre vor

Gelöst


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

mehr als 4 Jahre vor

Gelöst


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

mehr als 4 Jahre vor

Gelöst


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

mehr als 4 Jahre vor

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

mehr als 4 Jahre vor | 1 | 6 Lösungsvorschläge

Gelöst


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.

mehr als 4 Jahre vor

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

mehr als 4 Jahre vor | 0 | 6 Lösungsvorschläge

Gelöst


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

mehr als 4 Jahre vor

Gelöst


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

mehr als 4 Jahre vor

Gelöst


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

mehr als 4 Jahre vor

Gelöst


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

mehr als 4 Jahre vor

Gelöst


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

mehr als 4 Jahre vor

Gelöst


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

mehr als 4 Jahre vor

Gelöst


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

mehr als 4 Jahre vor

Gelöst


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

mehr als 4 Jahre vor

Gelöst


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

mehr als 4 Jahre vor

Gelöst


System of Linear Equations

mehr als 4 Jahre vor

Gelöst


Falling on the Moon.

mehr als 4 Jahre vor

Gelöst


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

mehr als 4 Jahre vor

Gelöst


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

mehr als 4 Jahre vor

Gelöst


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

mehr als 4 Jahre vor

Gelöst


Sales Tax

mehr als 4 Jahre vor

Gelöst


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

mehr als 4 Jahre vor

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

mehr als 4 Jahre vor | 0 | 6 Lösungsvorschläge

Gelöst


Basic: fft
Calculate the value using fft

mehr als 4 Jahre vor

Gelöst


Volume of Cylindrical Shell

mehr als 4 Jahre vor

Gelöst


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

mehr als 4 Jahre vor

Gelöst


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

mehr als 4 Jahre vor

Gelöst


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

mehr als 4 Jahre vor

Mehr laden