문제를 풀었습니다


Getting the indices from a matrice
Getting the indices from a matrice. Inspired by Problem 645. Getting the indices from a vector by the great Doug Hull. Given a...

5년 초과 전

문제를 풀었습니다


Get the elements of diagonal and antidiagonal for any m-by-n matrix
In the problem <http://www.mathworks.com/matlabcentral/cody/problems/858-permute-diagonal-and-antidiagonal Problem 858. Permute ...

5년 초과 전

문제를 풀었습니다


Replicate elements in vectors
Replicate each element of a row vector (with NaN) a constant number of times. Examples n=2, A=[1 2 3] -> [1 1 2 2 3 3] ...

5년 초과 전

문제를 풀었습니다


Return a list sorted by number of consecutive occurrences
Inspired by Problem 38 by Cody Team. Given a vector x, return a vector y of the values in x sorted by the number of CONSECUTIVE...

5년 초과 전

문제를 풀었습니다


Create logical matrix with a specific row and column sums
Given two numbers *|n|* and *|s|*, build an |n-by-n| logical matrix (of only zeros and ones), such that both the row sums and th...

5년 초과 전

문제를 풀었습니다


Generate N equally spaced intervals between -L and L
Given N and L, return a list of numbers (in ascending order) that divides the interval [-L L] into N equal-length segments. F...

5년 초과 전

문제를 풀었습니다


intersection of matrices
Given two matrices filled with ones and zeros, determine if they share a common row, column entry. These matrices are of identi...

5년 초과 전

문제를 풀었습니다


We love vectorized solutions. Problem 1 : remove the row average.
Given a 2-d matrix, remove the row average from each row. Your solution MUST be vectorized. The solution will be tested for ac...

5년 초과 전

문제를 풀었습니다


Piecewise linear interpolation
Given an Mx2 vector and a row of M-1 integers, output a two column vector that linearly interpolates Y times between each succes...

5년 초과 전

문제를 풀었습니다


Find Logic 1

5년 초과 전

문제를 풀었습니다


Find Logic 3

5년 초과 전

문제를 풀었습니다


Find Logic 4

5년 초과 전

문제를 풀었습니다


Find Logic 6

5년 초과 전

문제를 풀었습니다


Find Logic 7

5년 초과 전

문제를 풀었습니다


Find Logic 8

5년 초과 전

문제를 풀었습니다


Find Logic 9

5년 초과 전

문제를 풀었습니다


Find Logic 10

5년 초과 전

문제를 풀었습니다


Find Logic 11

5년 초과 전

문제를 풀었습니다


Find Logic 12

5년 초과 전

문제를 풀었습니다


Find Logic 13

5년 초과 전

문제를 풀었습니다


Find Logic 15

5년 초과 전

문제를 풀었습니다


Find Logic 14

5년 초과 전

문제를 풀었습니다


Find Logic 16

5년 초과 전

문제를 풀었습니다


Find Logic 17

5년 초과 전

문제를 풀었습니다


Find Logic 18

5년 초과 전

문제를 풀었습니다


Find Logic 19

5년 초과 전

문제를 풀었습니다


Project Euler: Problem 3, Largest prime factor
The prime factors of 13195 are 5, 7, 13 and 29. What is the largest prime factor of the number being input, input might be ui...

5년 초과 전

문제를 풀었습니다


With apologies to William Blake
Coder Coder, typing fast Sitting at your desk, aghast. What immortal MATLAB script will solve this problem, nice and qu...

5년 초과 전

문제를 풀었습니다


Convert Two Character String into a Binary Vector
Given a string "XOXXO" convert it into a binary vector. [1 0 1 1 0] Paul Berglund implemented an optimal method in <http://ww...

5년 초과 전

문제를 풀었습니다


Is the paranthesis sequence balanced ?
Quantum mechanics and computer science are interested in <http://en.wikipedia.org/wiki/Bra%E2%80%93ket_notation bra-kets>. Today...

5년 초과 전

더 보기