Answered
MATLAB with JAVA
Yes, it's very straightforward: info <http://www.mathworks.com/help/techdoc/matlab_external/f44062.html here>.

15 years ago | 0

Answered
Gaussian Filter
A Gaussian filter does not have a sharp frequency cutoff - the attenuation changes gradually over the whole range of frequencies...

15 years ago | 1

Answered
shifting a gaussian pulse
tau has 2252 elements but x has 17 elements, so you can't build expressions that try to combine them with elementwise operations...

15 years ago | 0

Answered
How to compute space-time gradients in video processing
The issue with image gradients is usually how much smoothing of the image data to do. This is a question not just of the noise i...

15 years ago | 1

Answered
Truncating a normal/Gaussian distribution
You can do truncation like this: truncated = max(original, -1); but note that your results will not be from a normal dis...

15 years ago | 0

Answered
How should I scratch this ticket?
I think that for such a hard problem, a collaborative solution is needed. % Collect expert opinion on the topic answers ...

15 years ago | 2

Answered
Why do I get zero?
(TAhi-TAlo)/TAhi is close to machine precision, and it's this relative size that matters when comparing two almost equal numbers...

15 years ago | 0

Answered
Writing parameters to a text file
See doc fprintf. This will do exactly what you want.

15 years ago | 0

Answered
calculating zig zags from simple path analysis with XY input data
I believe this does what you are asking, but you should check it against some trial data. It counts turns which exceed 90 degree...

15 years ago | 0

Answered
How to find a chunk of a certain number of zeros inside a vector
Another approach to finding the first group of 4 or more zeros: A = [0;1;1;1;0;0;0;0;1;1;1;1;0;1;0;0;0;1]; n = 4; c = ...

15 years ago | 0

Answered
How to find a chunk of a certain number of zeros inside a vector
A = [0;1;1;0;0;0;0;1;1;1;1;0;1;] n = 4; To find the first group of 4 or more zeros: p = regexp(char(A.'), char(zeros(1...

15 years ago | 0

| accepted

Answered
USE fft(x) as a highpass filter
You might find <http://www.mathworks.com/matlabcentral/fileexchange/28810-fourier-transform-demonstration this demo> helpful.

15 years ago | 1

Answered
Morphological opearations
Have a look at doc bwmorph

15 years ago | 0

Answered
return or break in nested loop?
If your code is a script (not part of a function definition), then "return" returns control to the keyboard - that is, it is lik...

15 years ago | 0

| accepted

Answered
Optical Flow
You could try using local feature matches to find the optic flow. Then your problem is essentially segmentation - you need to fi...

15 years ago | 0

Answered
Image/Rectangle matching
The question boils down to: "How can I find a rectangle in an image?" Once you have found the coordinates of the corners of the ...

15 years ago | 0

| accepted

Answered
Optical Flow
It's hard to know what you need - you say you have calculated the optical flow, so what is the problem? What kind of further pro...

15 years ago | 0

| accepted

Answered
x,y coordinates of edge lines in image ??
[y, x] = find(the_edge);

15 years ago | 4

| accepted

Answered
Animation of image
Here's something simple that works - though it's not elegant or efficient: % image data bigIm = imread('street1.jpg'); ...

15 years ago | 1

| accepted

Answered
Correlation Dimension
Have you tried Google? Googling "Grassberger-Procaccia matlab" gives, for example, <http://media.wiley.com/product_data/excerpt/...

15 years ago | 2

Answered
Array Comparison
Try temp = myPicture.'; myFilter = temp(:);

15 years ago | 0

Answered
Given a vector of assorted positive integers, how to create a vector with the means of every 2 integers inserted between each other?
result(1:2:2*length(v)-1) = v; result(2:2:2*(length(v)-1)) = conv(v, [1 1]/2, 'valid')

15 years ago | 1

Answered
Given a vector of assorted positive integers, how to create a vector with the means of every 2 integers inserted between each other?
result = interp1(v, linspace(1, length(v), length(v)*2-1), 'linear')

15 years ago | 0

| accepted

Answered
Given a vector of assorted positive integers, how to create a vector with the means of every 2 integers inserted between each other?
v= [2 6 8 3 1 9 4 5 7]; % data m = (v(1:end-1)+v(2:end))/2; t = [v; [m 0]]; t = t(:); result = t(1:end-1).'

15 years ago | 0

Answered
How might I call java functions without having to use 'import <x>' in each function
"import" has no effect on the speed of a Java program. The statement only tells the compiler where to find classes so that it ca...

15 years ago | 0

Answered
how to acquire a value from workspace
x = centroids(1); y = centroids(2);

15 years ago | 1

Answered
3-D surface plot problem if Z is not a equation
Have a look at the example in doc TriScatteredInterp

15 years ago | 0

Answered
how to use file downloaded from matlab central
Alternatively, put the file in any folder you like, and have a look at "Using the MATLAB Search Path" in the documentation - the...

15 years ago | 0

Answered
how to generate floating points randomly????
matrix_rand = rand(rowsize, colsize);

15 years ago | 0

| accepted

Answered
How to use Log polar transformation to recognize scale n rotation invariant images
You can't use the log-polar transform on its own to match images where there is translation as well as scale and rotation change...

15 years ago | 0

| accepted

Load more