Resuelto


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

más de 14 años hace

Problema


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

más de 14 años hace | 11 | 194 solvers

Resuelto


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

más de 14 años hace

Problema


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

más de 14 años hace | 2 | 165 solvers

Resuelto


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

más de 14 años hace

Problema


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

más de 14 años hace | 5 | 38 solvers

Resuelto


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

más de 14 años hace

Resuelto


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

más de 14 años hace

Problema


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

más de 14 años hace | 4 | 315 solvers

Problema


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

más de 14 años hace | 21 | 1359 solvers

Resuelto


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

más de 14 años hace

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

más de 14 años hace | 0

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

casi 15 años hace | 0

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

alrededor de 15 años hace | 0

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

más de 15 años hace | 0

| aceptada

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

más de 15 años hace | 0

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

más de 15 años hace | 0

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

más de 15 años hace | 0

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

más de 15 años hace | 10

| aceptada

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

más de 15 años hace | 0

Pregunta


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

más de 15 años hace | 5 respuestas | 12

5

respuestas

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

más de 15 años hace | 0

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

más de 15 años hace | 0

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

más de 15 años hace | 2

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

más de 15 años hace | 0

| aceptada

Respondida
How do I remove the empty cells from a vector of cells?
Here's one way to do it. strs = {'one','','two','three','','','four',''}; empties = find(cellfun(@isempty,strs)); % ...

más de 15 años hace | 3

Pregunta


How do I remove the empty cells from a vector of cells?
I have a vector of cells which contain strings. Some of the cells in the vector are empty. I want to remove the empty cells from...

más de 15 años hace | 5 respuestas | 7

5

respuestas

Respondida
How do I cut H and E planes from a 3D plot of an antenna radiation pattern?
You might find Eric Ludlam's <http://www.mathworks.com/matlabcentral/fileexchange/764-sliceomatic Sliceomatic> file (from the Fi...

más de 15 años hace | 1

Respondida
How do I simplify a symbolic expression into numeric output?
It looks like you've got a symbolic expression. You can substitute real numeric values for x1 and x2 like this: % Defin...

más de 15 años hace | 6

Pregunta


Why does 1 - 2/3 - 1/3 not equal zero?
Try this: >> 1 - 2/3 - 1/3 MATLAB gets the wrong answer: 5.5511e-017

más de 15 años hace | 4 respuestas | 8

4

respuestas

Cargar más