Publicado


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

alrededor de 14 años hace

Thumbnail

Resuelto


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

alrededor de 14 años hace

Publicado


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

alrededor de 14 años hace

Thumbnail

Publicado


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

alrededor de 14 años hace

Thumbnail

Resuelto


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

alrededor de 14 años hace

Publicado


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

alrededor de 14 años hace

Thumbnail

Resuelto


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

alrededor de 14 años hace

Problema


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

alrededor de 14 años hace | 9 | 86 solvers

Resuelto


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

alrededor de 14 años hace

Publicado


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

alrededor de 14 años hace

Thumbnail

Resuelto


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

alrededor de 14 años hace

Resuelto


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

alrededor de 14 años hace

Publicado


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

alrededor de 14 años hace

Thumbnail

Publicado


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

alrededor de 14 años hace

Thumbnail

Problema


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

alrededor de 14 años hace | 9 | 663 solvers

Problema


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

alrededor de 14 años hace | 15 | 475 solvers

Problema


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

alrededor de 14 años hace | 14 | 402 solvers

Problema


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

alrededor de 14 años hace | 14 | 413 solvers

Problema


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

alrededor de 14 años hace | 23 | 505 solvers

Resuelto


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

alrededor de 14 años hace

Publicado


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

alrededor de 14 años hace

Thumbnail

Resuelto


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

alrededor de 14 años hace

Resuelto


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

alrededor de 14 años hace

Resuelto


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

alrededor de 14 años hace

Resuelto


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

más de 14 años hace

Resuelto


Reindex a vector
You are given two vectors of equal length. Vector N has numeric values (no Inf or NaN) while vector IDX has integers. Place th...

más de 14 años hace

Resuelto


Longest run of consecutive numbers
Given a vector a, find the number(s) that is/are repeated consecutively most often. For example, if you have a = [1 2 2 2 1 ...

más de 14 años hace

Resuelto


Find the sum of all the numbers of the input vector
Find the sum of all the numbers of the input vector x. Examples: Input x = [1 2 3 5] Output y is 11 Input x ...

más de 14 años hace

Resuelto


Determine if input is odd
Given the input n, return true if n is odd or false if n is even.

más de 14 años hace

Problema


Put two time series onto the same time basis
Use interpolation to align two time series onto the same time vector. This is a problem that comes up in <http://www.mathwork...

más de 14 años hace | 6 | 357 solvers

Cargar más