Answered
Function to format number as currency?
Using SPRINTF is the way to go, but getting the commas right is tricky. I turned this into a question for Cody to see what folks...

14 years ago | 1

Solved


Formatting currency numbers
Given a number, format it properly for textual display using the notation $xxx,xxx,xxx.xx. Assume that no more than two digits ...

14 years ago

Problem


Is this group simply connected?
Given connectivity information about a graph, your job is to figure out if the graph is fully connected. You are given a list of...

14 years ago | 6 | 38 solvers

Solved


Right and wrong
Given a vector of lengths [a b c], determines whether a triangle with those sides lengths is a right triangle: <http://en.wikipe...

14 years ago

Answered
How to separate this DNA sequence?
Here's a simple way to chunk your DNA up into codons. Then you can just pull the rows off to get each triplet. >> sequence =...

14 years ago | 2

| accepted

Solved


Add two numbers
Given a and b, return the sum a+b in c.

14 years ago

Problem


Find the stride of the longest skip sequence
We define a _skip sequence_ as a regularly-spaced list of integers such as might be generated by MATLAB's <http://www.mathworks....

14 years ago | 11 | 194 solvers

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

14 years ago

Problem


Twins in a Window
<http://en.wikipedia.org/wiki/Twin_primes Twin primes> are prime numbers that differ by 2, such as [11,13] or [41,43]. Write a f...

14 years ago | 2 | 167 solvers

Solved


Twins in a Window
<http://en.wikipedia.org/wiki/Twin_primes Twin primes> are prime numbers that differ by 2, such as [11,13] or [41,43]. Write a f...

14 years ago

Problem


Make a function that returns its own character count
Write a function that returns a 128 element vector with an accurate inventory of the ASCII characters in its own function file. ...

14 years ago | 5 | 38 solvers

Solved


Too mean-spirited
Find the mean of each consecutive pair of numbers in the input row vector. For example, x=[1 2 3] ----> y = [1.5 2.5] x=[1...

14 years ago

Solved


Are you in or are you out?
Given vertices specified by the vectors xv and yv, and a single point specified by the numbers X and Y, return "true" if the poi...

14 years ago

Problem


N-Queens Checker
Picture a chessboard populated with a number of queens (i.e. pieces that can move like a queen in chess). The board is a matrix,...

14 years ago | 4 | 315 solvers

Problem


Remove the air bubbles
Given a matrix a, return a matrix b in which all the zeros have "bubbled" to the top. That is, any zeros in a given column shoul...

14 years ago | 21 | 1363 solvers

Solved


N-Queens Checker
Picture a chessboard populated with a number of queens (i.e. pieces that can move like a queen in chess). The board is a matrix,...

15 years ago

Answered
Miller Cylindrical Projection
One option is to use the <http://www.mathworks.com/products/mapping/ Mapping Toolbox>, which has a function to do exactly this p...

15 years ago | 0

Answered
How do I get a parameter to resolve when following the '%%' section header definer while using 'publish' command?
Publishing using cell mode markup doesn't permit passing parameters in the way you describe. Section heads can't contain paramet...

15 years ago | 0

Answered
getting the variable size value
To find the size, use <http://www.mathworks.com/help/matlab/ref/size.html |size|>. [m,n] = size(X) m = size(X,dim) So t...

15 years ago | 0

Answered
Colouring stacked bar chart
Try Brandon Levey's <http://www.mathworks.com/matlabcentral/fileexchange/24021-hatch-fill-patterns-plus-color-invert Hatch fill ...

15 years ago | 0

| accepted

Answered
Passing data between two different GUI windows
Here's a tricky non-Guide way to do it. Change the data in the text box and press return to plot the data in figure 2. % Ma...

15 years ago | 0

Answered
Can one suppress the display of dataset objects triggered by mouseover (datatips)?
Mike's blog may be of service here: <http://blogs.mathworks.com/desktop/2008/01/28/exploring-your-data-with-datatips/ Exploring ...

15 years ago | 0

Answered
Decreasing scale on graphs
Is this what you're looking for? plot(Times,TDCall) set(gca,'XDir','reverse')

15 years ago | 0

Answered
How do I read Text from HTML file ?
Try something like this: url = 'http://www.example.com/'; html = urlread(url); % Use regular expressions to remove undesi...

15 years ago | 10

| accepted

Answered
How to implement a neural network feedforward backpropagation network?
A quick Google search turned up this MATLAB-based approach: <http://alumni.media.mit.edu/~faaborg/research/cornell/hci_neuralnet...

15 years ago | 0

Question


How do I write a good question for MATLAB Answers?
I want to get fast and accurate help with my question. What information should I include in the question? How should I phras...

15 years ago | 5 answers | 12

5

answers

Answered
Shortest Path
<http://www.mathworks.com/matlabcentral/fileexchange/?dir=desc&sort=downloads&term=authorid:90537 Joseph Kirk> has some files on...

15 years ago | 0

Answered
Simple example which explains contour plotting
Try these pages in the documentation for <http://www.mathworks.com/help/techdoc/creating_plots/f10-2524.html contour>.

15 years ago | 0

Answered
Can we "Watch" Answers?
Take a look at Randy's answer to this question: <http://www.mathworks.com/matlabcentral/answers/233-does-matlab-answers-provide-...

16 years ago | 2

Answered
Eigenvector calculation
When I run the eig command (see help here: <http://www.mathworks.com/help/matlab/ref/eig.html eig>) I don't get any complex eige...

16 years ago | 0

| accepted

Load more