Gelöst


Im a lonely single male who spent most of his time doing computer science instead of picking up chicks.
Im a lonely single male who spent most of his time doing computer science instead of picking up chicks. Help me get girls please...

mehr als 11 Jahre vor

Gelöst


Deriving a function using the difference quotient
Write a function that evaluates the derivative of a function in a given point using the well-know formula of the difference quot...

mehr als 11 Jahre vor

Gelöst


Binary code (array)
Write a function which calculates the binary code of a number 'n' and gives the result as an array(vector). Example: Inpu...

mehr als 11 Jahre vor

Gelöst


Find the solution of algebraic equation
Find the solution of algebraic equation of the form an*x^n + a(n-1)*x^(n-1) + (an-2)*x^(n-2)+...... a2*x^2 + a1*x^1 + a0 = 0;...

mehr als 11 Jahre vor

Gelöst


Biggest Value in the (Neighbor)Hood
For this challenge you get two inputs: a matrix A and an integer value n. Your function should return a Matrix B of the same si...

mehr als 11 Jahre vor

Gelöst


resistor ladder
* You have a bunch (an odd number N) of identical resistors (each R ohms), a good battery (V volts), and a high impedance voltme...

mehr als 11 Jahre vor

Gelöst


New Cody Time-Out Time
Determine the New Cody Time-Out Time Consume the Maximum Possible Time without Timing out. *Score:* 60 (sec) - Time (sec) ...

mehr als 11 Jahre vor

Gelöst


McCabe Complexity
The Challenge is to return the McCabe complexity for various functions. One way to determine the McCabe Complexity is to use ...

mehr als 11 Jahre vor

Gelöst


Sort (high on middle, low on ends)
Sort the vector of numbers in order low-high-low. Even numbers appear in ascending order on the left and odd numbers appear in d...

mehr als 11 Jahre vor

Gelöst


Create a Cell array of month-end date strings within a provided date range
This is a variation of <http://www.mathworks.com/matlabcentral/cody/problems/1039-get-an-array-of-month-ends-in-a-date-range Get...

mehr als 11 Jahre vor

Gelöst


Create a Cell array of month-end date strings within a date range
This is a variation of <http://www.mathworks.com/matlabcentral/cody/problems/1039-get-an-array-of-month-ends-in-a-date-range Get...

mehr als 11 Jahre vor

Gelöst


prime test 2
enter the only non prime,non composite number

mehr als 11 Jahre vor

Gelöst


Temperature Conversion Utility
There are a few problems on Cody regarding temperature conversion (C to K, C to F, F to C), but none include Rankine. Furthermor...

mehr als 11 Jahre vor

Gelöst


prime test
find largest 2 digit prime number

mehr als 11 Jahre vor

Gelöst


just a try
put x=x^2

mehr als 11 Jahre vor

Gelöst


Alias abs to asb
Create an alias of a built-in function name. Goal is to alias asb with abs for dyslexic typers. The test suite will be ...

mehr als 11 Jahre vor

Gelöst


Script file size
Determine the file size of a script, "function.m". This is the base scoring method for Cody and the Matlab Contests. A met...

mehr als 11 Jahre vor

Gelöst


RMS value from a set of observations
Find rms value of a set of observations of a physical quantity? Hint: The observations are accessed in the form of vectors

mehr als 11 Jahre vor

Gelöst


James Bond film count
Twenty-three James Bond films have been produced, in the years 1962, 1963, 1964, 1965, 1967, 1969, 1971, 1973, ... 197...

mehr als 11 Jahre vor

Gelöst


Identify the heavier bag
There are N=2^n bags of rice looking alike, N-1 of which have equal weight and one is slightly heavier. The weighing balance is ...

mehr als 11 Jahre vor

Gelöst


Without french accent please !
Suppress french accent For example 'Déjà présent' -> 'Deja present'

mehr als 11 Jahre vor

Gelöst


Graph Algorithms - 1 : Length of the largest closed path
An undirected simple graph is given as the form of an adjacency matrix. Find the length of the largest closed path (one that sta...

mehr als 11 Jahre vor

Gelöst


Non-zero bits in 10^n.
Given an integer that is a power of 10, find the number of non-zero bits, k, in its binary representation. For example: * ...

mehr als 11 Jahre vor

Gelöst


What digit is it?
The function you are being asked to write will take three numbers (n,x,q) as input. The object of the function is to determine ...

mehr als 11 Jahre vor

Gelöst


count any radix?
given radix r(2-9), digts d(1-4), give all possible strings in sorted order. for example, if r=2, d=2, then output {'00' '01' '1...

mehr als 11 Jahre vor

Gelöst


Blood test?
Assuming: the genetic makeup (genotype) of a child is coded as a pair with two components, combining half genotype of one parent...

mehr als 11 Jahre vor

Gelöst


Removing rows from a matrix is easy - but what about inserting rows?
Assume A is a 5-by-5 matrix. A([2,4],:) = [] is a quick way to remove rows 2 and 4. Can you find a quick way to insert rows into...

mehr als 11 Jahre vor

Gelöst


FizzBuzz
<http://c2.com/cgi/wiki?FizzBuzzTest FizzBuzz Test> The "Fizz-Buzz test" is an interview question designed to help filter out...

mehr als 11 Jahre vor

Gelöst


COUNT LETTERS
Count the number of letters in a given string. For Example: STR='The MAtlAb code'; output:T 2 H 1 E 2 M 1 A 2 L 1 B 1 C ...

mehr als 11 Jahre vor

Gelöst


Create a random vector of integers with given sum
Your task today is to write a function that returns a vector of integer numbers, between, and including, 1 and m, of which the s...

mehr als 11 Jahre vor

Mehr laden