문제를 풀었습니다


Find duplicate number from a vector of size n + 1 containing numbers from 1:n
From a given vector of size n + 1, return the duplicate number. Constraints The vector can only contain numbers from 1 to ...

대략 3년 전

문제를 풀었습니다


Even Sum
Calculate the sum of all even numbers between 1 and a given positive integer n. Write a function that takes n as input and retur...

대략 3년 전

문제를 풀었습니다


Sum of Squares
Given a vector v of length n, write a MATLAB function to calculate the sum of the squares of its elements.

대략 3년 전

문제를 풀었습니다


Find Even Numbers in Vector
Given a vector x, return the even entries of the vector in the order they appear in x.

대략 3년 전

문제를 풀었습니다


Find the area of a square

대략 3년 전

문제를 풀었습니다


Find the volume of a cube
Given a cube with edge length x, calculated the volume of the cube.

대략 3년 전

문제를 풀었습니다


Sum the two halves of an array with an even number of elements
given an array of an even number of elements, sum the front and back half of the array and return the sums as an array For exam...

대략 3년 전

문제를 풀었습니다


Add Even and Subtract Odd Numbers in an Array
For an input array, add all the even values and subtract the odd values. This final value is the output. E.g. input = [1 2 3 4...

대략 3년 전

문제를 풀었습니다


Solve the logic
logic(1) = -4 logic(2) = -8 logic(3) = -9 logic(4) = 4 logic(5) = 95 logic(6) = 690

대략 3년 전

문제를 풀었습니다


hanoi towers II
with 3 rods (1,2 & 3), the goal is to move a tower of n disks from rod #1 to rod #3. You can move disks only one by one, on the...

대략 3년 전

문제를 풀었습니다


Game of Nim
The Game of Nim is a famous studied 2 player strategy game. <http://en.wikipedia.org/wiki/Nim> There are 3 heaps, and you...

대략 3년 전

문제를 풀었습니다


Go-style solver
Consider a variation of the game Go where one player has gone ahead and placed several pieces all at once. Assuming that the sec...

대략 3년 전

문제를 풀었습니다


Chess probability
The difference in the ratings between two players serves as a predictor of the outcome of a match (the <http://en.wikipedia.org/...

대략 3년 전

문제를 풀었습니다


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

대략 3년 전

문제를 풀었습니다


Chess ELO rating system
The Elo rating system is a method for calculating the relative chess skill levels of players in competitor-versus-competitor gam...

대략 3년 전

문제를 풀었습니다


RISK Calculator - Large Armies, High Accuracy, Fast
This Challenge is to quickly provide the high precision probability of legal RISK battles up to 100 vs 100. [ Attack >= 2 and D...

대략 3년 전

문제를 풀었습니다


Find collatz series next number
For given x, if x is even, output is (x/2) if x is odd, output is (3x+1)

대략 3년 전

문제를 풀었습니다


Convert row and column subscripts to linear indices
Convert 2D row and column subscripts to linear indices WITHOUT sub2ind Example: row = [1 2 3 1]; col = [2 2 2 3]; sz = [3 3]...

대략 3년 전

문제를 풀었습니다


findPositiveEvenNumbers
Write a MATLAB function findPositiveEvenNumbers that takes an array of integers as input and returns a new array containing only...

대략 3년 전

문제를 풀었습니다


How many revolutions around the earth
Calculate how many revolutions you will around the earth till 1/1/2100. Given the birhdate find your age in number of days on 1...

대략 3년 전

문제를 풀었습니다


Word with Highest Frequency
Write a MATLAB function that takes in a string and returns the word with the highest frequency in the string. The function shoul...

대략 3년 전

문제를 풀었습니다


Check for armstrong number
Given a number, check if it is an armstrong number. Eg: n = 371 Output: 1 Eg: n = 75 Output: 0

대략 3년 전

문제를 풀었습니다


掃き出し法を実装して、連立一次方程式を解いてみよう
掃き出し法を使った連立一次方程式の解法を穴埋めで実装してみましょう。 左辺と右辺を、それぞれ以下の行列Aおよび列ベクトルBで表したものが与えられたとします。この時、連立一次方程式の解xを求めましょう。 つまり、Ax=Bの解xを求めてみましょう。...

대략 3년 전

문제를 풀었습니다


How many offices does MathWorks have in the UK
Please write a function that returns the number of offices MathWorks has in the UK.

대략 3년 전

문제를 풀었습니다


Sum of series I
What is the sum of the following sequence: Σ(2k-1) for k=1...n for different n?

대략 3년 전

문제를 풀었습니다


Square root
Given x (a matrix), give back another matrix, where all the elements are the square roots of x's elements.

대략 3년 전

문제를 풀었습니다


Energy of a photon
&#9883 &#9762 &#9883 &#9762 &#9883 &#9762 &#9883 Given the frequency F of a photon in giga hertz. Find energy E of this photon...

대략 3년 전

문제를 풀었습니다


Can we make a triangle?
Given three positive number, check whether a triangle can be made with these sides length or not. remember that in a triangle su...

대략 3년 전

문제를 풀었습니다


Convert given decimal number to binary number.
Convert given decimal number to binary number. Example x=10, then answer must be 1010.

대략 3년 전

문제를 풀었습니다


Find my daddy long leg (No 's')
Given the ratio of the two legs (longer / shorter), and the hypotenuse length, find the value of the bigger leg.

대략 3년 전

더 보기