解決済み


Matlab Basics II - Velocity of a particle
A particle is moving in space, such that it's velocity is given by: <<http://s30.postimg.org/5rf1xtvj5/cody1.png>> write a...

12年弱 前

解決済み


Matlab Basics II - Create a vector with a repeated entry
Create a row vector of length n, filled with 4's, for example, if n = 3 output = [4 4 4] make sure to round UP when n is a...

12年弱 前

解決済み


Matlab Basics II - Minimum
Write a function that returns the minimum of each ROW of a matrix x example: x = [1 2 3; 4 5 6]; output [1;4];

12年弱 前

解決済み


Mobius function
From <http://en.wikipedia.org/wiki/Möbius_function wikipedia>: For any positive integer n, define μ(n) as the sum of the prim...

12年弱 前

解決済み


Hardy-Ramanujan number
Find the first Hardy-Ramanujan number.

12年弱 前

解決済み


Not square-free number sequence
<http://oeis.org/A013929 Not square-free numbers> are all positive integers divisible by a square greater than one: 4, 8, 9, 12,...

12年弱 前

解決済み


Sphenic number sequence
<http://oeis.org/A007304 Sphenic numbers> are positive integers that are products of three distinct prime numbers: 30, 42, 66, 7...

12年弱 前

解決済み


Billiards
Considering there are 15 pool balls, (b), in the game of pool, and given a radius, (r). What is the volume, (V), of a rack in th...

12年弱 前

解決済み


Finding perimeter of a rectangle
A rectangle has a length of x centimeters and a width of w centimeters. Find the perimeter.

12年弱 前

解決済み


Best Problem Elections
When I am writing those words, there are 2002 problems on Cody. Many of them are simply wonderful. Do you remember which of them...

12年弱 前

解決済み


Split array into pieces according to corresponding array
An array x of length n has values 1...m with each value appearing at least once. The values are sorted (n>=m). A second...

12年弱 前

解決済み


y equals x divided by 2
function y = x/2

12年弱 前

解決済み


Sum of integers numbers
Sum of the numbers from 1 to 100

12年弱 前

解決済み


Find the product of a Vector
How would you find the product of the vector [1.0 1.5 2.0 2.5 3.0 3.5 4.0 4.5 5.0 5.5 6.0] times 2?; x = [1 : 0.5 : 6]; y ...

12年弱 前

解決済み


Matlab Basics II - Max & Index of Max
Write a function that takes a vector x, then returns both the max value in x and its location in the vector for example x ...

12年弱 前

解決済み


Volume of a box
Given a box with a length a, width b, and height c. Solve the volume of the box.

12年弱 前

解決済み


square number
Square a number

12年弱 前

解決済み


Alkane
Given a number, x, that is equal to the number of carbons in an alkane, find, y, the number of hydrogens in the alkane.

12年弱 前

解決済み


Where is she?
Given the numbers 12, 3 , 6 ,9 Tell where the girl is located. I.E: Look to your 3 oclock = look right Ex. x = 3 fp...

12年弱 前

解決済み


Combination logic
Create an algorithm in MATLAB that calculate the combination for the given positive integers n and k as inputs. When k > n, the ...

12年弱 前

解決済み


Array of Ones
Create a 100 X 100 array of ones.

12年弱 前

解決済み


Palindrome
Given a string or array, determine whether the it is a palindrome.

12年弱 前

解決済み


Skip by a multiple
Given an integer create an array of its multiples. Array must have a length of 15

12年弱 前

解決済み


Decide whether determinant is zero.
Given a 3 x 3 matrix, find the determinant. Let y = true if the determinant is zero, and let y = false if the determinant is no...

12年弱 前

解決済み


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

12年弱 前

解決済み


Interior angles
Find the sum of interior angles for polygon of x sides.

12年弱 前

解決済み


Convert number from given base to other base
Convert number from given base to other base. Example 400 in base 5, find equivalent number in base 8, it is 144.

12年弱 前

解決済み


Find difference of two set as per example
Find difference of two set as per example Say x=[1:5] and y=[2:6] then, set_diff(x,y) should give output[1] and set_diff(y...

12年弱 前

解決済み


Collaborative Fun : Nomination
Series of problems have been presented in Cody aiming at collaborative fun. This problem is based on Alfonso's problem #2825 - P...

12年弱 前

解決済み


Area of a rectangle
Find the area of a rectangle with sides a and b

12年弱 前

さらに読み込む