Gelöst


Binary Coder
Take an input number and print the binary value of this number.

fast 5 Jahre vor

Gelöst


Back to basics 15 - classes
Covering some basic topics I haven't seen elsewhere on Cody. Return the class of the input variable.

fast 5 Jahre vor

Gelöst


Find the nearest integer
Given a vector of integers and a real number find the closest integer. EX: >> a = [2 4 5 6 8 10]; >> b = 4.6; >> nea...

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

fast 5 Jahre vor

Gelöst


Kinetic Energy
Given mass, m, and kinetic energy, KE, find the velocity of the object.

fast 5 Jahre vor

Gelöst


Convert a vector into a number
This is a sub problem related to this problem: <http://www.mathworks.com/matlabcentral/cody/problems/621-cryptomath-addition>...

fast 5 Jahre vor

Gelöst


Radians to Degrees
Convert radians to degrees.

fast 5 Jahre vor

Gelöst


Degrees to Radian
Convert degrees to radians

fast 5 Jahre vor

Gelöst


MPS to MPH
Given the speed in miles per second, find the speed in miles per hour.

fast 5 Jahre vor

Gelöst


Rankine to Celsius Converter
Given input R, degrees Rankine, convert into degrees Celsius.

fast 5 Jahre vor

Gelöst


Convert this color - RGB Vector to Hex String
Given a 3 element RGB vector corresponding to a color (given by the MATLAB color spec <http://www.mathworks.com/help/matlab/ref/...

fast 5 Jahre vor

Gelöst


Returning a "greater than" vector
Given a vector, v, return a new vector , vNew, containing only values > n. For example: v=[1 2 3 4 5 6] n=3 vNew =...

fast 5 Jahre vor

Gelöst


Rotate matrix by -90 degrees
Rotate a Matrix by -90 degrees Example: X = 1 2 3 4 5 6 7 8 9 output = 7 4 ...

fast 5 Jahre vor

Gelöst


Display negative numbers
Given array,x, display all the negative numbers and display output as y. Example x=[1 -2 3 -4] , output is y=[-2 -4].

fast 5 Jahre vor

Gelöst


Sum of cubes
Write a program to determine sum of cubes of first n odd numbers.

fast 5 Jahre vor

Gelöst


Number of toolboxes?
Return a number equal to the number of toolboxes available to the Cody solvers.

fast 5 Jahre vor

Gelöst


Number of primes
Count the number of primes less than 'n'.

fast 5 Jahre vor

Gelöst


Nth root
Nth root of a number x

fast 5 Jahre vor

Gelöst


kmph to mph converter
Convert the speed in miles/hour to km/hour.

fast 5 Jahre vor

Gelöst


Convert Fahrenheit to Kelvin
Convert the value f in Fahrenheit to Kelvin

fast 5 Jahre vor

Gelöst


Is X a Fibonacci Matrix?
In honor of Cleve's new blog and post: <http://blogs.mathworks.com/cleve/2012/06/03/fibonacci-matrices/> Is X a Fibonacci ...

fast 5 Jahre vor

Gelöst


Project Euler: Problem 9, Pythagorean numbers
A Pythagorean triplet is a set of three natural numbers, a b c, for which, a^2 + b^2 = c^2 For example, 3^2 + 4^2 =...

fast 5 Jahre vor

Gelöst


Project Euler: Problem 5, Smallest multiple
2520 is the smallest number that can be divided by each of the numbers from 1 to 10 without any remainder. What is the smalle...

fast 5 Jahre vor

Gelöst


Project Euler: Problem 8, Find largest product in a large string of numbers
Find the greatest product of five consecutive digits in an n-digit number. 73167176531330624919225119674426574742355349194934...

fast 5 Jahre vor

Gelöst


Project Euler: Problem 10, Sum of Primes
The sum of the primes below 10 is 2 + 3 + 5 + 7 = 17. Find the sum of all the primes below the input, N. Thank you <http:/...

fast 5 Jahre vor

Gelöst


Project Euler: Problem 7, Nth prime
By listing the first six prime numbers: 2, 3, 5, 7, 11, and 13, we can see that the 6th prime is 13. What is the Nth prime nu...

fast 5 Jahre vor

Gelöst


Project Euler: Problem 6, Natural numbers, squares and sums.
The sum of the squares of the first ten natural numbers is, 1^2 + 2^2 + ... + 10^2 = 385 The square of the sum of the first ...

fast 5 Jahre vor

Gelöst


Approximation of Pi
Pi (divided by 4) can be approximated by the following infinite series: pi/4 = 1 - 1/3 + 1/5 - 1/7 + ... For a given numbe...

fast 5 Jahre vor

Gelöst


Who has power to do everything in this world?
There is only one person who is older than this universe. He is Indian version of Chuck Norris.

fast 5 Jahre vor

Gelöst


Times 5
Try out this test problem first. Given the variable x as your input, multiply it by five and put the result in y. Examples...

fast 5 Jahre vor

Mehr laden