문제를 풀었습니다


Split array into pieces according to corresponding array
An array x of length n has values 1...m with each value appearing at least once. The values are sorted (n>=m). A second...

3년 초과 전

문제를 풀었습니다


Sum my indices
Given inputs M and N (in that order), output an MxN matrix whose entries are equal to the sum of their indices. Example input...

3년 초과 전

문제를 풀었습니다


Find indices of diagonal elements
Given a matrix A and a diagonal index d (where 0 indicates the main diagonal and off-diagonals are identified by positive and n...

3년 초과 전

문제를 풀었습니다


Hard limit function
Classify x data as if x>=0 then y=1 if x<0 then y=0 Example x = [ -2 -1 0 1 2] y = [ 0 0 1 1 1]

3년 초과 전

문제를 풀었습니다


How close to a hole
Suppose you have a description of good places (ones) and bad places (zeros). You want to know your distance from a bad place (in...

3년 초과 전

문제를 풀었습니다


Find the distance between runs
Another question inspired by the <http://uk.mathworks.com/matlabcentral/answers/?s_tid=gn_mlc_an answers forum>: A vector of ...

3년 초과 전

게시됨


New Cody Contest Underway
Because of the amazing contributions from community members like you, Cody has lots and lots of interesting problems to...

3년 초과 전

Thumbnail

문제를 풀었습니다


Project Euler: Problem 5, Smallest multiple
2520 is the smallest number that can be divided by each of the numbers from 1 to 10 without any remainder. What is the smalle...

3년 초과 전

게시됨


Images in Cody Problems
Today I get to tell you about a feature I’ve been lusting after for years: proper rich text in Cody with embedded images....

3년 초과 전

Thumbnail

문제


Find an inscribed square on a closed curve

3년 초과 전 | 3 | 솔버 수: 9

게시됨


Double Your Pleasure – Fun with Shifty Digits
You’re in for a guest-blogging treat today. But first… What is the relationship between the number 1947 and 7194? Look...

3년 초과 전

Thumbnail

게시됨


Cody Problem Visualization, Revisited
Way back in 2013 I did a blog post about visualizing Cody problems. The idea was to take various metrics for each problem...

3년 초과 전

Thumbnail

게시됨


Chan Zuckerberg Initiative Funding Open for MATLAB Community Toolboxes
Today’s post is a guest entry from Vijay Iyer, Neuroscience Community Liaison at MathWorks. MATLAB users in research have a...

거의 4년 전

Thumbnail

게시됨


MathWorks Documentation has a fresh look: Check out our new Help Center
You may have noticed that MATLAB Online Documentation now sports a different UI. For this post, I’d like to welcome Wendy...

거의 4년 전

Thumbnail

게시됨


Circles All the Way Down
This is a story about how ideas  and code bounce around our shared social spaces. This one went from Twitter to GitHub to...

거의 4년 전

Thumbnail

문제를 풀었습니다


Ordinal numbers
Given an integer n, return the corresponding ordinal number as a character string. For example, ord(1)='1st' ord(2)=...

거의 4년 전

문제를 풀었습니다


Split a string into chunks of specified length
Given a string and a vector of integers, break the string into chunks whose lengths are given by the elements of the vector. Ex...

거의 4년 전

문제를 풀었습니다


Cell Counting: How Many Draws?
You are given a cell array containing information about a number of soccer games. Each cell contains one of the following: * ...

거의 4년 전

문제를 풀었습니다


Guess Cipher
Guess the formula to transform strings as follows: 'Hello World!' --> 'Ifmmp Xpsme!' 'Can I help you?' --> 'Dbo J ifm...

거의 4년 전

문제를 풀었습니다


Successive zeros
Suppose n is the number of digits a number contains. Now, 12032 - is a valid n=5 digit number. But 10023 - is defined as i...

대략 4년 전

문제를 풀었습니다


Create a vector of n alternating ones and zeros
Given n, your output should be a vector y of numbers such that the first number is 1 and the numbers following it alternate betw...

대략 4년 전

문제를 풀었습니다


Find Elements in Range
Based on a question on <http://www.mathworks.com/matlabcentral/answers/ MATLAB Answers>. Find all the elements of a vector wh...

대략 4년 전

문제를 풀었습니다


Pancake sorting
Sort a stack of pancakes by flipping them using spatula. * There are _N_ pancakes with diameters _1:N_. * Spatula can be ins...

대략 4년 전

게시됨


Community Q&A – Kalyan Acharjya
Kalyan Acharjya has been contributing to MATLAB Answers since 2017. This past year his participation skyrocketed and he is...

대략 4년 전

Thumbnail

게시됨


Stay Connected using MATLAB and Simulink
Due to the global COVID-19 pandemic, engineers and scientists are finding themselves suddenly working from home or other...

대략 4년 전

Thumbnail

게시됨


New Decade, New MATLAB Mobile
You may have noticed that MATLAB Mobile now sports a different UI. For this post, I’d like to welcome Geeta Sonigra, our...

대략 4년 전

Thumbnail

게시됨


Nor’easters and Wind Roses
Where I live, in the northeast part of the United States, we have a special storm that goes by the name “nor’easter”. Do we...

대략 4년 전

Thumbnail

게시됨


Visualizing Square Roots with Elias Wegert
Quick, what’s the square root of -1? Okay, I know. That’s an easy one. But how about the square root of i? If it’s been a...

대략 4년 전

Thumbnail

게시됨


Leap Days on Mars
February 29th is right around the corner. It’s been hibernating for the past three years, snuggling in its secret den...

대략 4년 전

Thumbnail

게시됨


Head Over Heels in Love
This is what happens when two logarithmic spirals love each other very much. % Vary k from 1.5 to 3.5 k = 1.5; t =...

대략 4년 전

Thumbnail

더 보기