Respondida
How to get an ouput of a function in a try block ?
Open the window first, and pass it as an argument to MyFunction.

casi 15 años hace | 0

Respondida
Normxcorr2 and xcorr2
The functions are not the same: normxcorr2 normalises (i.e. divides by the product of the local standard deviations) but xcorr2 ...

casi 15 años hace | 1

Respondida
regexp match - not reading the hole name
Try using \<parameter1\> in the regular expression, instead of parameter1. For example: fileword = 'parameter1'; para...

casi 15 años hace | 0

Respondida
Dilate a line and color both sides
Building on Image Analyst's answer, here's another thought about how to trim the ends of the worm. The basic idea is to erode...

casi 15 años hace | 0

Respondida
A Quickie: do I have to create a temp array in my code
It looks as if TxTRIn{ii,2}(indx,2:5) is 2D. If that's correct, you can write abMax = max(max(TxTRIn{ii,2}(indx,2:5))); ...

casi 15 años hace | 0

| aceptada

Respondida
Logical Array Memory Allocation
There's a trade-off between speed and memory use. Accessing and updating individual bits is slow, due to the underlying hardware...

casi 15 años hace | 3

| aceptada

Respondida
Simple, infinite Animation (or pause on keypress)
Here's a function that may be some use - but others may have neater or more flexible solutions. It doesn't plot the orbit, just ...

casi 15 años hace | 1

Respondida
Why is my linear search algorithm not producing the output?
In MATLAB, assignment is = not := as in, for example, Pascal. Also, "not equals" is ~=, and structures such as while lo...

casi 15 años hace | 0

| aceptada

Respondida
Image Processing, How can I separate this bird from background?
Here is a description of the way I did it - but note that there are many different possibilities. If you try to do it this way a...

casi 15 años hace | 4

| aceptada

Respondida
Vector Difference
y = [x(1) diff(x)]

casi 15 años hace | 0

| aceptada

Respondida
Passing string as function argument
It's a bad idea to store your data in 1700 different variables: you'll find it is inefficient, and you already see how awkward i...

casi 15 años hace | 3

| aceptada

Respondida
Matrix Help
As Jan comments, your question is not clear. Like him, I can't understand the role of the symbols a, b etc. which just seem to ...

casi 15 años hace | 0

Respondida
How to display a 3D image
A lot depends on the characteristics of your binary images, and what you want the result to look like. Here's something simple t...

casi 15 años hace | 2

| aceptada

Respondida
higher order statistical parameters of image
Fifth moment, sixth moment, seventh moment ...

casi 15 años hace | 0

| aceptada

Respondida
While loop doesn't stop
The stopping test boils down to if sigman >= 0 This only counts as true if *all* elements of the matrix sigman are great...

casi 15 años hace | 0

| aceptada

Respondida
append .txt file
To combine DateTime and data, they both need to be cell arrays, because one of them contains strings. This will work to produce ...

casi 15 años hace | 0

| aceptada

Respondida
Multiplying multiple variables within an equation
y = (u.').^2 * sin(theta).^2/(9.81*2); gives you 21 x 91 matrix, where each row corresponds to one of the u values, and eac...

casi 15 años hace | 0

| aceptada

Respondida
How to calculate arithmetic series?
Does your first example look like this: n SUM i i=1 and your second example look like this: n ...

casi 15 años hace | 0

| aceptada

Respondida
Wrong mean calculation
It's a rounding error. See <http://matlab.wikia.com/wiki/FAQ#Why_is_0.3_-_0.2_-_0.1_.28or_similar.29_not_equal_to_zero.3F this F...

casi 15 años hace | 0

Respondida
Array of struct manipulating
It depends whether your data is a structure of arrays or an array of structures. See <http://blogs.mathworks.com/pick/2008/04/22...

casi 15 años hace | 0

Respondida
mirror image with frequency domain
Essentially you just flip left to right, using for example fliplr, as you would in the space domain, except that you need to mov...

casi 15 años hace | 0

Respondida
stepwise error
The specification for stepwise is stepwise(X,y,inmodel,penter,premove) so you don't need the strings 'penter' and 'premove'....

casi 15 años hace | 0

| aceptada

Respondida
matrix indexing
It is because the vector F is not logical and contains an element that is not a real positive integer. Note that in MATLAB in...

casi 15 años hace | 1

| aceptada

Respondida
Finite Element post-processing
You can read the data from the file into a matrix with either *dlmread* or *textscan*. The documentation for these has examples ...

alrededor de 15 años hace | 0

Respondida
image block indices
It doesn't make sense to use ra{i}{j} as an index into rc{i}{j}. You can avoid the error message by swapping their roles, r...

alrededor de 15 años hace | 0

Respondida
Sum of Euclidean distances
diffs = bsxfun(@minus, xyz(2:end,:), xyz(1,:)); distance = sum(sqrt(sum(diffs.^2, 2)))

alrededor de 15 años hace | 0

| aceptada

Respondida
Need programming help
Instead of wo = disp('skate'); you need wo = 'skate'; You're mixing up the process of printing something in a wi...

alrededor de 15 años hace | 2

Respondida
Multi dimensional data classification
It really depends on what criterion you want to use to determine whether two items of data should be in the same group, so there...

alrededor de 15 años hace | 0

| aceptada

Respondida
Matrix Multiplication Help
bsxfun(@times, A, B.')

alrededor de 15 años hace | 0

Respondida
Image/Shape Registration
The usual way this problem is approached is to match up the points, typically by choosing matches that minimise some measure of ...

alrededor de 15 años hace | 0

Cargar más