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

15 years 前 | 0

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

15 years 前 | 1

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

15 years 前 | 0

已回答
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...

15 years 前 | 0

已回答
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))); ...

15 years 前 | 0

| 已接受

已回答
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...

15 years 前 | 3

| 已接受

已回答
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 ...

15 years 前 | 1

已回答
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...

15 years 前 | 0

| 已接受

已回答
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...

15 years 前 | 4

| 已接受

已回答
Vector Difference
y = [x(1) diff(x)]

15 years 前 | 0

| 已接受

已回答
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...

15 years 前 | 3

| 已接受

已回答
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 ...

15 years 前 | 0

已回答
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...

15 years 前 | 2

| 已接受

已回答
higher order statistical parameters of image
Fifth moment, sixth moment, seventh moment ...

15 years 前 | 0

| 已接受

已回答
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...

15 years 前 | 0

| 已接受

已回答
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 ...

15 years 前 | 0

| 已接受

已回答
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...

15 years 前 | 0

| 已接受

已回答
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 ...

15 years 前 | 0

| 已接受

已回答
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...

15 years 前 | 0

已回答
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...

15 years 前 | 0

已回答
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...

15 years 前 | 0

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

15 years 前 | 0

| 已接受

已回答
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...

15 years 前 | 1

| 已接受

已回答
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 ...

15 years 前 | 0

已回答
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...

15 years 前 | 0

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

15 years 前 | 0

| 已接受

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

15 years 前 | 2

已回答
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...

15 years 前 | 0

| 已接受

已回答
Matrix Multiplication Help
bsxfun(@times, A, B.')

15 years 前 | 0

已回答
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 ...

15 years 前 | 0

加载更多