**Statistics**

**MATLAB Answers**

**0** Questions

**4** Answers

**File Exchange**

**19** Files

**Cody**

**0** Problems

**41** Solutions

**Blogs**

**504 Posts**

RANK**9,301**

of 258,326

REPUTATION**4**

CONTRIBUTIONS

**0** Questions

**4** Answers

ANSWER ACCEPTANCE **
0.00%
**

VOTES RECEIVED**2**

RANK**12** of 17,802

REPUTATION**34,023**

AVERAGE RATING**4.40**

CONTRIBUTIONS**19** Files

DOWNLOADS **169**

ALL TIME DOWNLOADS**269787**

CONTRIBUTIONS**504 Posts**

CONTRIBUTIONS**0** Public Channels

AVERAGE RATING

CONTRIBUTIONS**0** Highlights

AVERAGE NO. OF LIKES

**Content Feed**

Solved

Find relatively common elements in matrix rows

You want to find all elements that exist in greater than 50% of the rows in the matrix. For example, given A = 1 2 3 5 ...

4 months ago

Solved

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

5 months ago

Solved

subtract central cross

Given an n-by-n square matrix, where n is an odd number, return the matrix without the central row and the central column.

5 months ago

Solved

Get the area codes from a list of phone numbers

Given a string of text with phone numbers in it, return a unique'd cell array of strings that are the area codes. s = '508-647...

6 months ago

Solved

I Plead the Fifth

Write a function to provide a yes or no answer to the input string. However, it must plead the 5th amendment (return an empty st...

6 months ago

Solved

Finding Perfect Squares

Given a vector of numbers, return true if one of the numbers is a square of one of the numbers. Otherwise return false. Example...

6 months ago

Solved

Interpolator

You have a two vectors, a and b. They are monotonic and the same length. Given a value, va, where va is between a(1) and a(end...

6 months ago

Solved

Find the index of n in magic(n)

If input n=5, then magic(n) is 17 24 1 8 15 23 5 7 14 16 4 6 13 20 22...

6 months ago

Solved

Create an index-powered vector

Given a input vector x, return y as index-powered vector as shown below. Example x = [2 3 6 9] then y should be [...

6 months ago

Solved

Maximum value in a matrix

Find the maximum value in the given matrix. For example, if A = [1 2 3; 4 7 8; 0 9 1]; then the answer is 9.

6 months ago

Solved

Swap the input arguments

Write a two-input, two-output function that swaps its two input arguments. For example: [q,r] = swap(5,10) returns q = ...

6 months ago

Solved

Sum all integers from 1 to 2^n

Given the number x, y must be the summation of all integers from 1 to 2^x. For instance if x=2 then y must be 1+2+3+4=10.

6 months ago

Solved

Reverse the vector

Reverse the vector elements. Example: Input x = [1,2,3,4,5,6,7,8,9] Output y = [9,8,7,6,5,4,3,2,1]

6 months ago

Solved

Make a random, non-repeating vector.

This is a basic MATLAB operation. It is for instructional purposes. --- If you want to get a random permutation of integer...

6 months ago

Solved

Word Counting and Indexing

You are given a list of strings, each being a list of words divided by spaces. Break the strings into words, then return a maste...

6 months ago

Solved

MATLAB Counter

Write a function f = counter(x0,b) to construct a counter handle f that counts with an initial value x0 and a step size b. E...

7 months ago

Solved

Fix the last element of a cell array

Note: this is lifted directly from <http://www.mathworks.com/matlabcentral/answers/82825-puzzler-for-a-monday Puzzler for a Mond...

7 months ago

Solved

Cell joiner

You are given a cell array of strings and a string delimiter. You need to produce one string which is composed of each string fr...

7 months ago

Solved

Getting the indices from a vector

This is a basic MATLAB operation. It is for instructional purposes. --- You may already know how to <http://www.mathworks....

8 months ago

Published

Debugging at Point of Error

12:16 One of my MATLAB scripts has failed and is currently stopped at the error point. By having...

11 months ago

Published

Using parfor to Make Many Web Requests

47:27 My colleague asked me to access all the pages on a web server in order to populate it’s cache. I...

12 months ago

Published

Analyzing Sitemaps

51:43 Today, I want to analyze the sitemaps on mathworks.com. These XML files, in standard locations,...

1 year ago

Published

Repurposing Some MATLAB Code to Detect Large Web Images

46:56 I need to find all video thumbnails on our website that are larger than a certain size. I tried...

1 year ago

Published

Shortest Path Between Two Web Pages

31:05 I want to find how you get to a particular web page on our website from another one, i.e. what...

1 year ago

Published

I Want To Add An “Are You Sure?” Alert To My Web App

28:38 The web app I’m working on manipulates a set of MAT files and lets me switch between them....

1 year ago

Published

AutoHotkey Shortcuts for the MATLAB Editor

11:49 I created some AutoHotkey shortcuts to make it easier to execute arbitrary lines of code in the...

1 year ago

Published

Copying Text to the Clipboard in MATLAB Web App – Fail

18:29 I want to occasionally copy text from data in a table in my web app, so I try to add a line to...

1 year ago

Published

Adding Another Output Argument to a Function

18:23 I need to add another output argument to a function I made last week, to return some more...

1 year ago