Triangle Numbers
Triangle numbers are the sums of successive integers. So 6 is a triangle number because
6 = 1 + 2 + 3
which can be displa...
거의 6년 전
문제를 풀었습니다
Make the vector [1 2 3 4 5 6 7 8 9 10]
In MATLAB, you create a vector by enclosing the elements in square brackets like so:
x = [1 2 3 4]
Commas are optional, s...
거의 6년 전
문제를 풀었습니다
Times 2 - START HERE
Try out this test problem first.
Given the variable x as your input, multiply it by two and put the result in y.
Examples:...
거의 6년 전
문제를 풀었습니다
Connect Four: find winning move
Inspired by <http://www.mathworks.com/matlabcentral/cody/problems/90-connect-four-win-checker this problem>...
<http://en.wik...
거의 6년 전
문제를 풀었습니다
Check to see if a Sudoku Puzzle is Solved
*Description:*
Your task, should you choose to accept it, is to make a function that checks to see if a 9x9 matrix of integer...
거의 6년 전
문제를 풀었습니다
Replicate elements in vectors (★★★)
(copy of Prob 867)
Replicate each element of a row vector (with NaN) a constant number of times. Examples
n=2, A=[1 2...
거의 6년 전
문제를 풀었습니다
Sudoku square
We have a small Sudoku square, but one number is missing.
x = [ 1 5 4
8 6 3
0 9 7 ]
Make a function, wher...
거의 6년 전
문제를 풀었습니다
Solve the Sudoku Row
*Description*
A simple yet tedious task occurs near the end of most Sudoku-solving algorithms, computerized or manual. The ta...