Published


Try this on Cody and Trendy
Hi, I’m Bob Levy and I’ve recently joined the MATLAB Central team as Product Manager. I’ll be writing here periodically to...

14 years ago

Thumbnail

Published


Learn about MATLAB Plots using Trendy
The other day I was looking at questions from our users on MATLAB Answers, the MATLAB Central and also on MATLAB’s Facebook...

14 years ago

Thumbnail

Published


Mastering MATLAB Markup
In my completely biased opinion, one of the most useful features in Cody, Trendy, and MATLAB Answers is the ability to use...

14 years ago

Thumbnail

Published


Wait bars and beyond: call me when you’re done
pre.codeinput { margin:0px 0px 20px; padding:10px; border:1px solid #d3d3d3; background:#f7f7f7; } Here’s a fun fact: the...

14 years ago

Thumbnail

Published


MATLAB Central Community Freshens Up MathWorks Support Site
This summer, the MathWorks Support site launched new graphical aids and better access to helpful content. Specifically,...

14 years ago

Thumbnail

Published


Lose the Gray Face: Customize Your Profile
Do you have a picture on your Community Profile?  If you don’t, customize your Community Profile for a chance to win a...

14 years ago

Thumbnail

Solved


Add more zeros
Find code that adds one 0 to each sequence of 0 in a string (composed with only 0 or 1). For example: '1010' -> '100100' ...

14 years ago

Published


Cody and Trendy release notes
Last week we made updates to both Trendy and Cody. My post today is a quick overview of some of the new features. Cody In...

14 years ago

Thumbnail

Published


Cody Hits Two Milestones
We’ve had a few exciting weeks here on MATLAB Central! A month ago we introduced a new blog, Cleve’s Corner, which is...

14 years ago

Thumbnail

Solved


Set the array elements whose value is 13 to 0
Input A either an array or a vector (which can be empty) Output B will be the same size as A . All elements of A equal to 13...

14 years ago

Published


The Master Speaks: An Interview with Cody Champion @bmtran
Bryant Tran, better known to the Cody-playing world as @bmtran, has been the leading player on Cody since the week it...

14 years ago

Thumbnail

Solved


Multiply 2 numbers
Very easy, you just have to multiply 2 numbers but you cannot use the following signs (*, /, - ,^) ,mtimes , times, cross, pro...

14 years ago

Problem


Twist 'n' Match
Given n and m, construct an n-by-n matrix a such that a, when rotated 90 degrees and compared with itself, matches itself in exa...

14 years ago | 9 | 86 solvers

Solved


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

14 years ago

Published


New Features In MATLAB Answers
We’ve just released a long list of new features in MATLAB Answers. Here’s a rundown of what’s new and what’s...

14 years ago

Thumbnail

Solved


Matrix with different incremental runs
Given a vector of positive integers a = [ 3 2 4 ]; create the matrix where the *i* th column contains the vector *1:a(i)...

14 years ago

Solved


Project Euler: Problem 6, Natural numbers, squares and sums.
The sum of the squares of the first ten natural numbers is, 1^2 + 2^2 + ... + 10^2 = 385 The square of the sum of the first ...

14 years ago

Published


Multipoint data gathering in Trendy
When we launched Trendy, you could only grab one data point per trend. One of our very first plots, which was created as...

14 years ago

Thumbnail

Published


June MATLAB Community Updates
In today’s post, I thought I would share fun news with you about our MATLAB community plus one tip about Trendy from a...

14 years ago

Thumbnail

Problem


Make a run-length companion vector
Given a vector x, return a vector r that indicates the run length of any value in x. Each element in r shows how many times the ...

14 years ago | 9 | 663 solvers

Problem


Spot the outlier
All points except for one lie on a line. Which one is the outlier? Example: You are given a list of x-y pairs in a column ...

14 years ago | 15 | 475 solvers

Problem


Find a subset that divides the vector into equal halves
Given a vector x, return the indices to elements that will sum to exactly half of the sum of all elements. Example: Inpu...

14 years ago | 14 | 403 solvers

Problem


How long is the longest prime diagonal?
Stanislaw Ulam once observed that if the counting numbers are <http://en.wikipedia.org/wiki/Ulam_spiral arranged in a spiral>, t...

14 years ago | 14 | 414 solvers

Problem


Find the biggest empty box
You are given a matrix that contains only ones and zeros. Think of the ones as columns in an otherwise empty floor plan. You wan...

14 years ago | 23 | 506 solvers

Solved


Symmetric matrix
You must create a n-by-n *symmetric* matrix such that A(row,col) = row/col for col >= row. Example if n =3 : output is : ...

14 years ago

Published


MATLAB Central Release Notes – May 2012
Here is a quick list of recent MATLAB Central updates you might be interested in checking out: MATLAB Answers OR search...

14 years ago

Thumbnail

Solved


QWERTY Shift Encoder
Encode a string using the QWERTY shift code. This code is where you touch type but are offset by one character to the right. ...

14 years ago

Solved


Reverse the Words (not letters) of a String
*Description* Change the words of a string such that the words appear in reverse order. You may assume that the string is a n...

14 years ago

Solved


Make a run-length companion vector
Given a vector x, return a vector r that indicates the run length of any value in x. Each element in r shows how many times the ...

14 years ago

Solved


Remove the two elements next to NaN value
The aim is to *remove the two elements next to NaN values* inside a vector. For example: x = [6 10 5 8 9 NaN 23 9 7 3 21 ...

14 years ago

Load more