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

14年以上 前 | 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 ...

14年以上 前 | 1

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

14年以上 前 | 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...

14年以上 前 | 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))); ...

14年以上 前 | 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...

14年以上 前 | 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 ...

14年以上 前 | 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...

14年以上 前 | 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...

14年以上 前 | 4

| 採用済み

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

14年以上 前 | 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...

14年以上 前 | 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 ...

14年以上 前 | 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...

14年以上 前 | 2

| 採用済み

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

14年以上 前 | 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...

14年以上 前 | 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 ...

14年以上 前 | 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...

14年以上 前 | 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 ...

14年以上 前 | 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...

14年以上 前 | 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...

14年以上 前 | 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...

14年以上 前 | 0

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

14年以上 前 | 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...

14年以上 前 | 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 ...

14年以上 前 | 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...

14年以上 前 | 0

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

14年以上 前 | 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...

14年以上 前 | 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...

14年以上 前 | 0

| 採用済み

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

14年以上 前 | 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 ...

14年以上 前 | 0

さらに読み込む