統計
All
Feeds
解決済み
Longest Divisor Run
Given the vector a, find the longest run of consecutive numbers that can be evenly divided by the same number d where d > 1. ...
4年弱 前
解決済み
Times 3
Try out this test problem first. Given the variable x as your input, multiply it by three and put the result in y. Example...
4年以上 前
解決済み
Mo money, mo math 1! (★★★)
(adapted from Prob 9 Cody team) You have a vector where the elements represent the number of $20 bills, $10 bills, $5 bills, ...
4年以上 前
解決済み
Times 11
Try out this test problem first. Given the variable x as your input, multiply it by eleven and put the result in y. Exampl...
4年以上 前
解決済み
Calculate the volume of a cone
Calculate the volume of a cone given an array containing one column of radii and one column of the height of the cone. * Reme...
4年以上 前
解決済み
How many apple
You have x apples I take from you y apples now how many apples you have ?
4年以上 前
解決済み
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...
4年以上 前
解決済み
Pentagonal dodecahedron
<<https://upload.wikimedia.org/wikipedia/commons/7/73/Dodecahedron.gif>> Pentagonal dodecahedron is a dodecahedron that is ...
4年以上 前
解決済み
Sum 1 to 100 even number
Write a Matlab program to add all the even numbers from 0 to 100 |
4年以上 前
解決済み
Times 10
Try out this test problem first. Given the variable x as your input, multiply it by ten and put the result in y. Examples:...
4年以上 前
解決済み
Times 10
Try out this test problem first. Given the variable x as your input, multiply it by ten and put the result in y. Examples:...
4年以上 前
解決済み
Fill a zeros matrix (★★★★★)
(Copy of Problem 830) The aim is to fill an array of all zeros given a numerical value and the index of row and columns for t...
4年以上 前
解決済み
Doubling elements in a vector (★★)
(copy of prob. 1024) Given the vector A, return B in which all numbers in A are doubling. So for: A = [ 1 5 8 ] t...
4年以上 前
解決済み
Mo money, mo math #2! (adapted from Prob 9 Cody team)
You have a matrix for which each row is a person and the columns represent the number of quarters, dimes, nickels and pennies th...
4年以上 前
解決済み
Prime number check
One way to see if a number x is prime is to compute the remainders obtained when dividing x by all integers from 2 to √(x). If x...
4年以上 前
解決済み
Sum of terms in a series 1
Given x and n, compute the following sum: |x|+|x|^(1/2)+|x|^(1/3)+|x|^(1/4)+|x|^(1/5) ... + |x|^(1/n) where ||x|| indica...
4年以上 前
解決済み
How many points lie within the rectangle and how many aren't?
Suppose, you are given the coordinates of bottom-left and top-right corners of a rectangle as *input-1, R* i.e *R=[Bottom-left c...
4年以上 前
解決済み
Find the next binary palindrome number
We all know, a *palindrome* is nothing but a number or character which remains the same after the forward or backward alteration...
4年以上 前
解決済み
Number of lattice points within a circle
Find the number of points (x,y) in square lattice with x^2 + y^2 =< n. This is related to Jame's <http://www.mathworks.com/matla...
4年以上 前
解決済み
Minimum Distance Point to Segment
This Challenge is to determine the minimum distance from a 2-D line segment defined by two points to a point. The point is (p...
4年以上 前
解決済み
Create a matrix that counts up diagonally
Given a single input _N_, create a _N_ x _N_ matrix that counts from 1 : _N_ ², (along up-right diagonals, starting with 1 in th...
4年以上 前
解決済み
Beads on a Necklace (Convex Hulls)
We may describe a <http://en.wikipedia.org/wiki/Convex_hull convex hull> as a rubber band stretched around a list of points. Som...
4年以上 前
解決済み
Portfolio diversification: choose your stocks !
we have the returns of 3 stocks for the last 4 years and we have to combine only 2 stocks that are less correlated. Example: ...
4年以上 前
解決済み
What gear ratio does the cyclist need?
A cyclist (perhaps including our famed Codysolver the cyclist <http://www.mathworks.com/matlabcentral/cody/players/1841757-the...
4年以上 前