Gelöst


Word Distance - Sum
Let's suppose that the distance of a word can be calculated by summing the differences between its letters, having assigned the ...

fast 4 Jahre vor

Gelöst


Count letters occurence in text, specific to words with a given length.
Build a function with two input arguments: a string and a word length (number of letters), that outputs a vector of counts of th...

fast 4 Jahre vor

Gelöst


Data decompression
A chunk of data is to be 'decompressed'. Input: * compressed: a row vector of uint8 values. This is the compressed data. ...

fast 4 Jahre vor

Gelöst


Alphabetize by last name
Given a list of names in a cell array, sort the list by the last name. So if list = {'Barney Google','Snuffy Smith','Dagwood ...

fast 4 Jahre vor

Veröffentlicht


Savitha Talks About Kubernetes
I’m happy this week to be talking to a fellow MathWorker: Savitha Raghunathan. Why, you may ask, should I use the MATLAB...

etwa 4 Jahre vor

Thumbnail

Gelöst


Elements with highest local average
Input v is a row vector such that length(v)>3. Consider a sliding window of length 3 that is used to calculate the local average...

etwa 4 Jahre vor

Gelöst


Combine Data With Gaps
Combine data sets a and b where the datasets have "gaps" or unique points. Example: Input a = [1,0; 2,1; ...

etwa 4 Jahre vor

Gelöst


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

etwa 4 Jahre vor

Gelöst


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

etwa 4 Jahre vor

Gelöst


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

etwa 4 Jahre vor

Gelöst


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]

etwa 4 Jahre vor

Gelöst


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

etwa 4 Jahre vor

Gelöst


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

etwa 4 Jahre vor

Veröffentlicht


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

etwa 4 Jahre vor

Thumbnail

Gelöst


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

etwa 4 Jahre vor

Veröffentlicht


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

etwa 4 Jahre vor

Thumbnail

Problem


Find an inscribed square on a closed curve

etwa 4 Jahre vor | 3 | 5 Lösungsvorschläge

Veröffentlicht


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

mehr als 4 Jahre vor

Thumbnail

Veröffentlicht


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

mehr als 4 Jahre vor

Thumbnail

Veröffentlicht


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

mehr als 4 Jahre vor

Thumbnail

Veröffentlicht


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

mehr als 4 Jahre vor

Thumbnail

Veröffentlicht


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

mehr als 4 Jahre vor

Thumbnail

Gelöst


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

mehr als 4 Jahre vor

Gelöst


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

mehr als 4 Jahre vor

Gelöst


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

mehr als 4 Jahre vor

Gelöst


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

mehr als 4 Jahre vor

Gelöst


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

mehr als 4 Jahre vor

Gelöst


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

mehr als 4 Jahre vor

Gelöst


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

mehr als 4 Jahre vor

Gelöst


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

mehr als 4 Jahre vor

Mehr laden