문제를 풀었습니다


Is this is a Tic Tac Toe X Win?
For the game of <https://en.wikipedia.org/wiki/Tic-tac-toe Tic Tac Toe> we will be storing the state of the game in a matrix M. ...

거의 7년 전

문제를 풀었습니다


Spot the First Occurrence of 5
This problem series invites you to solve two simple problems related to the integer NUMBER FIVE, in order to celebrate <https://...

거의 7년 전

문제를 풀었습니다


Is it really a 5?
A number containing at least one five will be passed to your function, which must return true or false depending upon whether th...

거의 7년 전

문제를 풀었습니다


I Plead the Fifth
Write a function to provide a yes or no answer to the input string. However, it must plead the 5th amendment (return an empty st...

거의 7년 전

문제를 풀었습니다


5 Prime Numbers
Your function will be given lower and upper integer bounds. Your task is to return a vector containing the first five prime numb...

거의 7년 전

문제를 풀었습니다


Extra safe primes
Did you know that the number 5 is the first safe prime? A safe prime is a prime number that can be expressed as 2p+1, where p is...

거의 7년 전

문제를 풀었습니다


Van Eck's Sequence's nth member
Return the Van Eck's Sequence's nth member. For detailed info : <http://oeis.org/A181391 OEIS link> and <https://www.theguard...

거의 7년 전

문제를 풀었습니다


Pentagonal Numbers
Your function will receive a lower and upper bound. It should return all pentagonal numbers within that inclusive range in ascen...

거의 7년 전

문제를 풀었습니다


Pernicious Anniversary Problem
Since Cody is 5 years old, it's pernicious. <http://rosettacode.org/wiki/Pernicious_numbers Pernicious number> is an integer whi...

거의 7년 전

문제를 풀었습니다


Tick. Tock. Tick. Tock. Tick. Tock. Tick. Tock. Tick. Tock.
Submit your answer to this problem a multiple of 5 seconds after the hour. Your answer is irrelevant; the only thing that matte...

거의 7년 전

문제를 풀었습니다


Energy of a photon
Given the frequency F of a photon in giga hertz. Find energy E of this photon in giga electron volts. Assume h, Planck's ...

거의 7년 전

문제를 풀었습니다


How to subtract?
* Imagine you need to subtract one number from another using MATLAB. * You will not be using eval for this task. * Given two A...

거의 7년 전

문제를 풀었습니다


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

거의 7년 전

문제를 풀었습니다


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

거의 7년 전

문제를 풀었습니다


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

거의 7년 전

문제를 풀었습니다


Longest run of consecutive numbers
Given a vector a, find the number(s) that is/are repeated consecutively most often. For example, if you have a = [1 2 2 2 1 ...

거의 7년 전

문제를 풀었습니다


Construct an index vector from two input vectors in vectorized fashion
Create an index vector defined by two input vectors, one defining the beginnings of one or more index ranges, and the other defi...

거의 7년 전

문제를 풀었습니다


Joining Ranges
You are given a n-by-2 matrix. Each row represents a numeric range, e.g. x = [0 5; 10 3; 20 15; 16 19; 25 25] contains...

거의 7년 전

문제를 풀었습니다


Put two time series onto the same time basis
Use interpolation to align two time series onto the same time vector. This is a problem that comes up in <http://www.mathwork...

거의 7년 전

문제를 풀었습니다


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

거의 7년 전

문제를 풀었습니다


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

거의 7년 전

답변 있음
How to extract a PDF from points with a weigh attached to them
I don't know if there's a canned function for this - you could try: 1. Compute weighted mean for each column of X 2. Comp...

거의 7년 전 | 0

질문


Odd getrect(FIG) behavior with subplots (r2015b)
I am noticing an unusual behavior of getrect when passing a figure handle as the argument. e.g. hFig1 = figure(1); hA...

거의 7년 전 | 답변 수: 2 | 0

2

답변

답변 있음
FFT and Optical Spectra
If you're looking for a simple import and speed isn't a concern you should try: uiimport A speedier load than this can ...

거의 7년 전 | 0

질문


Save Python List to MAT File (R2015b)
I've got a small apparent issue with using the python list datatype in MATLAB. If I save a py.list to a MAT file and then try to...

거의 7년 전 | 답변 수: 2 | 0

2

답변

답변 있음
Rotating Subparts of Image
This might work for you: 1. Mask a box around the pacman & extract the pixel values 2. Make the background grey where you pull...

대략 7년 전 | 0

질문


MCR Applications with Python Functions
I am having an MCR compatiblity issue with python. When I run my application in native MATLAB (r2015b), I call a python script a...

대략 7년 전 | 답변 수: 1 | 0

1

답변

답변 있음
DBscan with Map reduce code
py.sklearn.cluster.dbscan

대략 7년 전 | 0

질문


Full File Path Quotation Marks (Double vs Single)
A small thing that I often work around is changing file path names enclosed in double quotes to single quotes to load them into ...

대략 7년 전 | 답변 수: 1 | 0

1

답변

답변 있음
Creating array from 1.e-20 to 1, with steps 1.e-19, 1.e-18..
logspace(-20,0,21)

거의 8년 전 | 4

| 수락됨

더 보기