已解决


Find the circumference of the circle
Geometry

4 years 前

已解决


Find the circumference of the circle
geometry

4 years 前

已解决


Find the area of the circle
geometry

4 years 前

已解决


That's not my hat!
There exists a highly secretive hat consortium. Members possess identical hats. The members are invited to a meeting. All of the...

4 years 前

已解决


Swap Characters of a Single Word
Description: In the given input word, convert the lower case to upper case and vice versa. A to a, a to A ... Example: 'Matl...

4 years 前

已解决


Random Problem14 - Multiply a vector by a scalar of 2
Multiply a vector by a scalar of 2

4 years 前

已解决


MatCAT - Reconstruct X from Its X-rays
Consider a matrix x x = [ 1 2 0 0 5 0 3 0 8 ] If we sum x along the rows we get row_sums = [3 5 11] ...

4 years 前

已解决


Determine whether the given number is palindrome or not.
A palindromic number (also known as a numeral palindrome or a numeric palindrome) is a number (such as 16461) that remains the s...

4 years 前

已解决


Convert matrix to 3D array of triangular matrices
Given a 2D numeric array x in which each column represents the vectorized form of an upper triangular matrix, return a 3D array ...

4 years 前

已解决


Frobenius McNugget Factorization
Mr. Frobenius McNugget is a peculiar man. As you might expect, he likes to eat Chicken McNuggets. But his love of number the...

4 years 前

已解决


Don't Try, give up and return NaN.
This is another version of <http://www.mathworks.com/matlabcentral/cody/problems/3107-try-and-catch-simple-example problem 3107....

4 years 前

已解决


Matrix of Multiplication Facts
This is James's daughter again, sneaking into his Cody account. Thanks to your help in my math class last year, I did great! B...

4 years 前

已解决


String Manipulator
Write a script that takes a string as an input and returns a cell array containing – I. the count of vowels. II. Find the ind...

4 years 前

问题


Compute a determinant
Write a function to compute the determinant of an x matrix with diagonal entries equal to an integer and other entries equal ...

4 years 前 | 0 | 15 个解题者

已解决


Simulating the selection of a state with given probabilities
Lets say we have 3 different states [1,2,3] with the probabilities of occurrences of each state is given as [0.5 0.2 0.3]. Which...

4 years 前

已解决


Generating random matrix with given probability mass function
Inspired by <http://www.mathworks.com/matlabcentral/cody/problems/2356-simulating-the-selection-of-a-state-with-given-probabilit...

4 years 前

已解决


Break it up! Break it up!
You have N pennies. Write a Matlab script that will reveal how many different ways you can break up those pennies. For example...

4 years 前

问题


Fill a rectangle with 1x1 and 2x2 tiles
A 3x2 rectangle can be filled with 1x1 and 2x2 tiles in three ways: A 3x3 rectangle can be filled with 1x1 and 2x2 tiles in f...

4 years 前 | 2 | 21 个解题者

已解决


RandomProblem13-Cube a number
Cube a number

4 years 前

已解决


Random Problem12- Squaring a number
Square the number

4 years 前

已解决


Multiply by 3
Multipy the thingy by 3

4 years 前

已解决


RandomProblem32
Solve for the answer

4 years 前

已解决


RandomProblem33
Solve for the answer.

4 years 前

已解决


Chess performance
After Problems <http://www.mathworks.com/matlabcentral/cody/problems/3054-chess-elo-rating-system/ 3054> and <http://www.mathwor...

4 years 前

已解决


Two functions (to be sure)
I want to compute the number of odd/even numbers in an array. But I want the results by two different functions. Example: ...

4 years 前

已解决


Get a Fibonacci number's index.
*N.B.* For the purpose of this exercise, the first Fibonacci number is 1, and the second is 2; that is, |fib(1) = 1| and |fib(2)...

4 years 前

已解决


Matlab Basics II - Operations and Matrix Dimensions
Write a function that takes two inputs, a & b, and outputs the sum and product of the two matrices. The matrices have OPPOSITE d...

4 years 前

已解决


Is the test point on the line segment?
Given the [x,y,z] coordinates for the three points pa, pb, and pc, return true if the test point pc is on the line segment with ...

4 years 前

已解决


Square Rooting a Number
This MATLAB Cody exercise requires you to take a number x, square root it, and get y

4 years 前

已解决


prime consecutive sums
Create a number sequence of 1 to n, such that the sums of every two consecutive numbers are all primes. E.g. if n = 5, you may ...

4 years 前

加载更多