해결됨

Still more miles to go before I sleep

It's time for more odometer fun. Last problem, my car's odometer hit 56789. It's coming up on 111111 now, which (barring a maj...

20일 전

해결됨

Lunar Arithmetic (Multiplication)

<https://oeis.org/A087061 OEIS link for a description of lunar arithmetic> Simply take the larger digit when adding and take ...

20일 전

해결됨

Numbers on 7-segment

This is a 7-segment: _ |_| |_| It's a 3-by-3 char matrix.It has made by 3 characters: '_' , '|' and ' ' (space...

21일 전

해결됨

Triangle Numbers (★★)

(copy of problem 5) Triangle numbers are the sums of successive integers. So 6 is a triangle number because 6 = 1 + 2 + 3...

21일 전

해결됨

Longest run of consecutive numbers (★★★★★)

(copy of Problem 672) Given a vector a, find the number(s) that is/are repeated consecutively most often. For example, if you...

21일 전

해결됨

Words Count: A Cell Array Approach

Given an input character vector consisting of words, punctuation marks, white spaces, and possibly newline characters (\n), arra...

22일 전

해결됨

Words Count: A String Array Approach

Given an input character vector consisting of words, punctuation marks, white spaces, and possibly newline characters (\n), arra...

22일 전

해결됨

Remove the row average (★★★)

(copy of Prob. 963) Given a 2-d matrix, remove the row average from each row. Your solution MUST be vectorized. The solut...

22일 전

해결됨

Generate a vector which contains a pyramid pattern (★★★★)

Generate a vector that contains terms that follows a pyramid pattern up to the nth row: 1 2 2 3 3 3 4 4 4 4 ...

22일 전

해결됨

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

22일 전

해결됨

Average of corner elements of a matrix (★★)

(copy of prob 2235) Calculate the average of corner elements of a matrix. e.g. x=[1 2 3; 4 5 6; 7 8 9;] avg = (1+3+7+9)...

22일 전

해결됨

Column Removal (★★★)

(copy of prob 7) Remove the nth column from input matrix A and return the resulting matrix in output B. So if A = [1 2...

22일 전

해결됨

Extract leading non-zero digit (★★★★★)

(Copy of Problem 47) Benford's Law states that the distribution of leading digits is not random. This is probably because man...

22일 전

해결됨

Reindex a vector (★★)

(copy of Prob. 676) You are given two vectors of equal length. Vector N has numeric values (no Inf or NaN) while vector IDX h...

22일 전

해결됨

Get the elements of diagonal and antidiagonal for any m-by-n matrix (★★★★)

(copy of prob. 859) In this problem you must submit a solution which returns the diagonal and anti-diagonal elements without ...

22일 전

해결됨

Create times-tables (★★★)

(copy of prob 33) At one time or another, we all had to memorize boring times tables. 5 times 5 is 25. 5 times 6 is 30. 12 ti...

22일 전

해결됨

Make a checkerboard matrix (★★★★★)

(copy of Prob. 4) Given an integer n, make an n-by-n matrix made up of alternating ones and zeros as shown below. The a(1...

22일 전

해결됨

Magnitude of a vector (★★★)

Given a vector x with values [ x1, x2, x3, ..., xn ], compute the magnitude (or length) of the vector which is given by <<htt...

22일 전

해결됨

Sum of elements of a vector (★★★)

Given any vector x = [x1, x2, x3, ... xn], compute the sum of its elements. Thus, if x = [ 1 3 -2 5 ], then the sum of its el...

22일 전

해결됨

Select every other element of a vector (★★)

(copy of prob 6) Write a function which returns every other element of the vector passed in. That is, it returns the all odd-...

22일 전

해결됨

Sum of elements in a vector (★)

(copy of Prob. 3) Find the sum of all the numbers of the input vector x. Input x = [1 2 3 5] Output y is 11 <> ...

22일 전

해결됨

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

22일 전

해결됨

Swap the first and last columns (★★)

(copy of Prob 19) Flip the outermost columns of matrix A, so that the first column becomes the last and the last column becom...

22일 전

해결됨

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

22일 전

해결됨

Matrix indexing with two vectors of indices (★★)

(copy of Prob 589) Given a matrix M and two index vectors a and b, return a row vector x where x(i) = M(a(i),b(i)). Thus, if...

22일 전

해결됨

Which one is More bigger?

we have two input like (x,y) our output (z) must wich one is bigger input.

22일 전

해결됨

Check transmitted data follow even parity (True or false)

Check transmitted data follow even parity (True or false) <http://en.wikipedia.org/wiki/Parity_bit/ Parity Bit> Say, '010...

23일 전

해결됨

Find the mode of the given input

Find the statistical <http://en.wikipedia.org/wiki/Mode_(statistics)/ mode> of the given input. Example: If X is matr...

23일 전

해결됨

root?

* Given a function 'foo', and a position 'there', find the root near 'there'. * For example: If foo=@sin, and there=3.1, then r...

23일 전

해결됨

~~~~~~~ WAVE ~~~~~~~~~

|The WAVE generator| Once upon a time there was a river. 'Sum' was passing by the river. He saw the water of the river that w...

24일 전