Published


Getting By With a Little Help
Let’s say you’ve written some code that you think might worth adding to the File Exchange. But then you hesitate. Your...

9 years ago

Thumbnail

Published


Numerical Analyst John D’Errico Takes a Stroll Through Cody
I think of the wise and generous John D’Errico as a computational philanthropist. After a long career as a numerical analyst...

9 years ago

Thumbnail

Published


Flag Math on Bastille Day
Let me start with a graphical riddle. In what sense is the following equivalence true? To learn the answer, read on! I...

9 years ago

Thumbnail

Published


File Exchange Alert: Your Help Is Needed!
Collaboration on software can be a lot of fun, but it can also be hard to motivate. For instance, you may be working on a...

9 years ago

Thumbnail

Published


Searching for MATLAB Examples with Google
I want to show you a trick for finding entertaining MATLAB code. Of course I will always recommend that you start looking...

9 years ago

Thumbnail

Published


The Great Ans Hack
Cody is a game that rewards you for calculating the same answer with less code. The very first Cody problem you encounter...

9 years ago

Thumbnail

Published


Soccer Passing Networks
I saw another fun MATLAB-related tweet go by, this time about soccer rather than doughnuts. The Euro 2016 tournament is...

9 years ago

Thumbnail

Published


National Jelly-Filled Doughnut Day
National Doughnut Day was June 3rd. On that day, Sean Breckling was nice enough to tweet this to the universe of MATLAB...

9 years ago

Thumbnail

Published


A New Name, A New Focus
This is the blog that used to be called "MATLAB Spoken Here." When we gave it that name, we were thinking it would be a good...

9 years ago

Thumbnail

Problem


Frobenius McNugget Factorization
Mr. Frobenius McNugget is a peculiar man. As you might expect, he likes to eat Chicken McNuggets. But his love of number the...

9 years ago | 16 | 42 solvers

Solved


Convert integer to base26 using letters
Write a function that converts a decimal integer to base26 using the letters of the english alphabet, i.e. 0->'a', 1->'b', 2->'c...

10 years ago

Problem


Breaking Bad Tiles (Spelling with Element Symbols)
Given a word, how you would spell it with element symbols from the periodic table? For instance, if given the string "Paper", yo...

10 years ago | 5 | 30 solvers

Solved


Number of occurrences of letter in a text
Given an input text either as a string or as a cell array of strings, return a (1 x 26) matrix containing the number of occurren...

10 years ago

Problem


Placing Beads Neatly in a Box
You are given a string of n black and white beads. Your job is to pack them neatly into a square box. "Neatly" in this case mean...

10 years ago | 8 | 16 solvers

Problem


Is It a Snake?
Given an m-by-n matrix, return true if the elements of the matrix are a connected "snake" shape from 1 to m*n. Otherwise return ...

10 years ago | 4 | 53 solvers

Solved


Replace secondary diagonal elements of a square array
Replace all the secondary diagonal elements of the square array A with the number n Example: A = [1 2 3 4 5 6 ...

10 years ago

Published


Community Improvements: MATLAB Answers
The Community Team has launched a new landing page for MATLAB Answers. MATLAB Answers is a popular community resource for...

10 years ago

Thumbnail

Problem


Find the Final State of an Abelian Sandpile
Let us define an <http://nautil.us/issue/23/dominoes/the-amazing-autotuning-sandpile Abelian sand pile> as a matrix that is only...

10 years ago | 4 | 73 solvers

Channel


Location of the Mary Maersk
The Mary Maersk is one of the largest container ships in the world. The location information shown here comes from https://www.v...

10 years ago

Published


MATLAB Conference Australia & New Zealand 2015
This week’s blogger is Bradley Horton. Bradley is an engineer at MathWorks Australia who works with customers in the...

10 years ago

Thumbnail

Submitted


Printing Variables to HTML Tables in Published Code
This file lets you display variables as HTML tables in your published MATLAB files.

10 years ago | 1 download |

3.85714 / 5
Thumbnail

Solved


This is a palindrome and so am I
A palindrome is a sequence of characters which reads the same backward or forward, for instance 'a man a plan a canal panama'...

10 years ago

Question


How to import Excel data from a spreadsheet with cross-file references?
I have an Excel spreadsheet, call it Spreadsheet A, that I want to read into MATLAB. The Import Tool works well for this. Exc...

10 years ago | 2 answers | 0

2

answers

Problem


Fibonacci Decomposition
Every positive integer has a unique decomposition into nonconsecutive Fibonacci numbers f1+f2+ ... Given a positive integer n, r...

10 years ago | 16 | 922 solvers

Published


Spotted: a Real MATLAB Fan
Apparently, it's not temporary....

11 years ago

Thumbnail

Solved


Triangle sequence
A sequence of triangles is constructed in the following way: 1) the first triangle is Pythagoras' 3-4-5 triangle 2) the s...

11 years ago

Published


Face Coder Product Preview
We don’t ordinarily talk about features under development, but today’s post comes from one of our internal product teams...

11 years ago

Thumbnail

Published


Let’s Code! Make a Cody Video
Ever seen a “Let’s Play” video, where somebody documents their own activity as they play a video game? They can be a lot of...

11 years ago

Thumbnail

Solved


Pangrams!
A pangram, or holoalphabetic sentence, is a sentence using every letter of the alphabet at least once. Example: Input s ...

11 years ago

Solved


Prime Letters = Removing
Given a string, remove all the letters which in ASCII Code are prime numbers. For Example: s1 = 'Determine which array e...

11 years ago

Load more