Solved


sum of non-primes
The sum of the non-primes below 10 is 1+4+6+8+9+10=38 Find the sum of all the non-primes below the input, N.

13 years ago

Published


How Trendy Saved My Life
OK, it didn’t really save my life. But Trendy’s users have helped me understand MATLAB coding and plotting… and to some,...

13 years ago

Thumbnail

Solved


Largest Twin Primes
<http://en.wikipedia.org/wiki/Twin_prime Twin primes> are primes p1, p2 = p1 + 2 such that both p1 and p2 are prime numbers. Giv...

13 years ago

Solved


Make a 1 hot vector
Make a vector of length _N_ that consists of all zeros except at index _k_, where it has the value 1. Example: Input ...

13 years ago

Published


Earn MATLAB Badges in Cody
I’m pleased to share a recent Cody development: You’re playing along, and one day you notice Cody has begun to acknowledge...

13 years ago

Thumbnail

Problem


Give a matrix that matches itself when rotated
Given n and s, return a n-by-n matrix a of integers such that sum(sum(a == rot90(a))) is equal to exactly s. The integer...

13 years ago | 2 | 13 solvers

Problem


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

13 years ago | 3 | 2391 solvers

Published


MATLAB Knots Contest Winners
And the winners of the MATLAB Knots Contest are… Raphaël Candelier – Grand Prize Winner Hannes Naudé – Prince of...

13 years ago

Thumbnail

Solved


Select every other element of a vector
Write a function which returns every other element of the vector passed in. That is, it returns the all odd-numbered elements, s...

13 years ago

Published


A Meeting of the Contest Masterminds
The contest is winding down. The queue has been shut down one last time and we are waiting for the queue to finish...

13 years ago

Thumbnail

Solved


Vector LCM
* Find Least Common Multiple of a given vector. * Need general solution as the test suite will be expanded. * Function Templa...

13 years ago

Published


MATLAB Knots Contest has started
The Fall 2012 MATLAB Contest is inspired by the game Planarity. But it was also inspired by the problem of the Gordian...

13 years ago

Thumbnail

Answered
Single title spanning a nxn subplot
You might want to try <http://www.mathworks.com/matlabcentral/fileexchange/7772-suplabel suplabel> from the File Exchange.

13 years ago | 0

| accepted

Published


MATLAB Mobile for Android
It’s here! MATLAB Mobile is now available on the Android™ platform. From your Android smartphone or tablet, you can now...

13 years ago

Thumbnail

Published


Have you heard of the MATLAB Contest?
That’s right… MATLAB Central has a programming contest where contestants submit MATLAB code to try to solve a challenge. The...

13 years ago

Thumbnail

Solved


Make a Star Pyramid
Create a star pyramid. First line will have 1 star, second will have two stars and so on... a basic program which is easily done...

13 years ago

Solved


Set a diagonal
Given a matrix M, row vector v of appropriate length, and diagonal index d (where 0 indicates the main diagonal and off-diagonal...

13 years ago

Published


What’s new on File Exchange
As David Garrison explained in his earlier post on the Art of MATLAB blog, MATLAB Apps are a great way to extend your MATLAB...

13 years ago

Thumbnail

Published


MATLAB communities all around the world
Most regular readers of this blog are members of our MATLAB Central community. Here you can find great resources like MATLAB...

13 years ago

Thumbnail

Published


Getting answers to your MATLAB questions
I was reviewing user questions the other day, comparing how users ask questions about MATLAB within different parts of our...

13 years ago

Thumbnail

Published


How do you use MATLAB Answers?
In a little over a year and a half, the MATLAB Answers community has: Grown to 20,000+ askers and answerers. Posted tens of...

13 years ago

Thumbnail

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

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

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

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

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

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

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

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

13 years ago

Thumbnail

Load more