解決済み

Draw 'D'.

Draw a x-by-x matrix 'D' using 0 and 1. example: x=4 ans= [1 1 1 0 1 0 0 1 1 0 0 1 1 1 1 0]

約2ヶ月 前

解決済み

Draw 'C'.

Given x as input, generate a x-by-x matrix 'C' using 0 and 1. example: x=4 ans= [0 1 1 1 1 0 0 0 ...

約2ヶ月 前

解決済み

Draw 'B'

Draw a x-by-x matrix 'B' using 1 and 0. (x is odd and bigger than 4) Example: x=5 ans= [1 1 1 1 0 1 0 0 0 1 ...

約2ヶ月 前

解決済み

Draw a 'X'!

Given n as input Draw a 'X' in a n-by-n matrix. example: n=3 y=[1 0 1 0 1 0 1 0 1] n=4 y=[1 0 0...

約2ヶ月 前

解決済み

When Was That Goal Scored?

We want to find out when the goals were scored in a particular soccer game. For each game, we are given a "Goal Event Data" XML ...

約2ヶ月 前

解決済み

Use R2016b Text Manipulations to Fix These Addresses (Part 1)

We have a series of addresses like the following which we'd like to reformat. Can you remove the latitude and longitude from the...

2ヶ月 前

解決済み

Combine the first and last names

MATLAB R2016 provides a rich set of functions to work with string arrays. In this problem, you will be given two string arrays o...

2ヶ月 前

解決済み

String Array Basics, Part 1: Convert Cell Array to String Array; No Missing Values

<http://www.mathworks.com/help/matlab/characters-and-strings.html String array> and cell array are two types of containers for s...

2ヶ月 前

解決済み

Spot the rectangle (Part 2)

This problem is related to the <http://bit-player.org/2009/the-17x17-challenge 17x17 challenge>. See also <http://www.mathworks....

3ヶ月 前

解決済み

Spot the rectangle

This problem is related to the <http://bit-player.org/2009/the-17x17-challenge 17x17 challenge>. Given a matrix filled with ones...

3ヶ月 前

解決済み

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

3ヶ月 前

解決済み

Weighted Gold/Silver Standard

Building off of the <http://www.mathworks.com/matlabcentral/cody/problems/8045-gold-standard Gold Standard> and <http://www.math...

3ヶ月 前

解決済み

Gold/Silver Standard

Pursuant to the <http://www.mathworks.com/matlabcentral/cody/problems/8045-gold-standard Gold Standard> problem, suppose that yo...

3ヶ月 前

解決済み

Gold Standard

Gold has long been used as currency and a standard for currency, due to its inherent value and rarity. Historical data for gold ...

3ヶ月 前

解決済み

Return fibonacci sequence do not use loop and condition version 2

Calculate the nth Fibonacci number,return sequence Given n, return f where f = fib(n) and f(1) = 1, f(2) = 1, f(3) = 2, ... ...

3ヶ月 前

解決済み

Pattern Recognition 3 - Variable Unit and Array Length (including cell arrays)

You will be given various arrays, composed of numbers or strings, including cell arrays of strings. For this problem, the patter...

3ヶ月 前

解決済み

Pattern Recognition 2 - Known Unit Length, Various Array Length (including cell arrays)

You will be given various arrays, composed of numbers or strings, including cell arrays of strings. For this problem, the known ...

3ヶ月 前

解決済み

Pattern Recognition 1 - Known Unit Length

You will be given various arrays, composed of numbers or strings. For this problem, the known pattern unit length is three. Writ...

3ヶ月 前

解決済み

Twin Primes

Twin primes are pairs of primes that are immediately next to each other (difference of two). The lesser of twin primes are 3, 5,...

3ヶ月 前

解決済み

Self-similarity 3 - Every other pair of terms

Self-similar integer sequences are certain sequences that can be reproduced by extracting a portion of the existing sequence. Se...

3ヶ月 前

解決済み

Self-similarity 2 - Every third term

Self-similar integer sequences are certain sequences that can be reproduced by extracting a portion of the existing sequence. Se...

3ヶ月 前

解決済み

Self-similarity 1 - Every other term

Self-similar integer sequences are certain sequences that can be reproduced by extracting a portion of the existing sequence. Se...

3ヶ月 前

解決済み

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

3ヶ月 前

解決済み

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

3ヶ月 前

解決済み

Sphenic number sequence

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

3ヶ月 前

解決済み

Special matrix

Make a square matrix with this shape. For n=4 M = 1 1 0 0 1 0 1 0 0 1 0 ...

3ヶ月 前

解決済み

Mirror Image matrix across anti-diagonal

Given an input number x, create a mirror image matrix 'Y' across the anti-diagonal. For example, if x=3, Y = [1 2 3; ...

3ヶ月 前

解決済み

Create Volcano (or Atoll) martix. It is an extension of Bullseye matrix problem.

For example, if n=2 (maximum value), the output matrix should be [1 1 1 1 1; 1 2 2 2 1; 1 2 1 2 1; 1 2 2 2 1; 1...

3ヶ月 前

解決済み

Pascal's Matrix

Given an integer n ≥ 0, generate the ( _n_+1) × ( _n_+1) lower triangular <http://en.wikipedia.org/wiki/Pascal_matrix P...

3ヶ月 前

解決済み

Put m balls into n boxes

Can you find all the cases where, if I put 3 balls into 2 boxes the case is 1 1 1 1 1 2 1...

3ヶ月 前