Risposto
keep getting error in the covariance: Subscript indices must either be real positive integers or logicals.
It looks as if you have used *cov* as the name of a variable. Do which cov to see if this is the case. You should see...

oltre 11 anni fa | 2

| accettato

Risposto
how to make a colorwheel in matlab?
The functions you need are meshgrid, atan2 and hsv2rgb. Possibly also hypot if you want to make the centre bright or dark.

oltre 11 anni fa | 0

Risposto
unexpected figure with inverted child photo pops up when i run my code
It's because you are assigning a value to *img* but using the value of *image*, which has the side effect of displaying the boy....

oltre 11 anni fa | 0

Risposto
Why does it not calculate x & y for all values of t?
Your code process all the values of t - the problem is that the calls to disp are outside the loop, so they only show the values...

oltre 11 anni fa | 2

| accettato

Risposto
Cylinder unwrapping with imtransform
I haven't tested this, but here's a quick thought: try replacing f = @(x, unused) arcsin(1/x); with f = @(x, unused...

oltre 11 anni fa | 0

| accettato

Risposto
How to assign an element of a column array to a variable?
The variable *i* is not given a value in *initiation_1*. That means that it gets its default value, which is the square root of ...

oltre 11 anni fa | 0

| accettato

Risposto
How to plot data with corresponding dates
The problem is that you are using linspace to produce equally separated dates rather than converting each of the actual dates. T...

oltre 11 anni fa | 0

| accettato

Risposto
Remove vertical stripping noise
You can smooth the image in the vertical direction, which reduces the amplitude of the circles but leaves the stripes. Then subt...

oltre 11 anni fa | 2

| accettato

Risposto
How to store number of images matrix and double values in cell or array?
Cell arrays could be used, but this looks like an ideal case for a struct array. See <http://www.mathworks.co.uk/help/matlab/str...

oltre 11 anni fa | 0

| accettato

Risposto
how i can implement lowpass filter on image using matlab
If you want to smooth with a Gaussian kernel, as already suggested, you might find gsmooth2, available <http://www.mathworks.co....

oltre 11 anni fa | 1

Risposto
gender discrimination using image processing
A student once did a project with me on that. It was a long time ago but I think she had some success using facial skin texture ...

oltre 11 anni fa | 0

Risposto
Problem with multiple if conditions....
The conditions are almost mutually exclusive and almost correct. To be absolutely right, you need the second inequality in condi...

oltre 11 anni fa | 0

| accettato

Risposto
What does this statement mean "Use a for loop to move x = 'a' half the distance to 'b' and do it 'n' times."
Suppose a is 3 and b is 7. Then the 'distance' from a to b is 4, half the distance is 2, and moving a that much towards b means ...

oltre 11 anni fa | 0

Risposto
how can I make a mask that is like a circle??
Your specification isn't very precise, but the attached function may help.

oltre 11 anni fa | 0

| accettato

Risposto
adding matrices with different dimensions
Convert X to a column vector. Then bsxfun will do what you want. For example X = rand(1, 50); thita = rand(1, 180); ...

oltre 11 anni fa | 0

| accettato

Risposto
FFT in 3D matrix
I'm not quite sure what the second and third dimensions are, but assuming you want each column transformed on the time dimension...

oltre 11 anni fa | 0

| accettato

Risposto
How to find the variance of an image?
*var* requires a double or single argument. This will work: img = double(imread('eight.tif')); v = var(img); But note...

oltre 11 anni fa | 1

| accettato

Risposto
Best practice of for loops and vectorisation, also maybe cumprod.
prod(cellfun(@length, someArray))

oltre 11 anni fa | 2

| accettato

Risposto
set up a subkey for containers.map class
See <http://www.mathworks.co.uk/matlabcentral/fileexchange/33068-a-multidimensional-map-class my multidimensional map class>.

oltre 11 anni fa | 2

| accettato

Risposto
creating 3d array from images
B2 is the name of a variable, which has not been given a value. It appears that B1 was given a value in some code that isn't sho...

oltre 11 anni fa | 0

Risposto
To ignore the data files with error and proceed in the code
Use try and catch. Something like for ... try gunzip ... catch me <test error, if it's significant...

oltre 11 anni fa | 2

| accettato

Risposto
matlab code to compute the DFT using just O(N (P + Q)) operations, instead of the O(N ^2 ) operations?
Just use the fft function. It's almost certainly as good as you'll get.

oltre 11 anni fa | 0

Risposto
What do fspecial image filtering parameters mean?
The Gaussian filter does not have a sharp cut-off, but 2*pi*sigma is the wavelength at which the amplitude is multiplied by a fa...

oltre 11 anni fa | 3

| accettato

Risposto
Why does MATLAB even have single precision variables?
For most purposes, double precision is good because calculations are less likely to be affected by rounding errors (though it's ...

oltre 11 anni fa | 2

Risposto
Very simple question about strings
"According to the numbers" is ambiguous. This sorts the strings in ascending order, making the digit in position 3 more signi...

oltre 11 anni fa | 0

| accettato

Risposto
Does Wake Forest University have a license with MATLAB
I'd start by asking <http://is.wfu.edu/ Wake Forest University Information Systems>.

oltre 11 anni fa | 0

Risposto
How to locate the the position of a 3D subimage in larger image in Matlab?
Assuming you have used *load* to read the mat-files and the images are stored as X and Y, you can look for an exact match by che...

oltre 11 anni fa | 1

Risposto
Reshaping X, Y, Z Data
X_New = X_New(:); Y_New = Y_New(:); Z_New_2 = Z_New_2(:); does what you asked - that is, it reshapes each of the arra...

oltre 11 anni fa | 0

| accettato

Risposto
hello all, am a beginner to image processing can anybody kindly explain what is the purpose of using the code from the line 44 to line 52 in harris corner detection pls help me out. am try to understand it form past 2 days . pls help me out.
Lines 44 and 45 implement the central definition of the Harris-Stephens corner measure. To undertand this, look preferably at th...

oltre 11 anni fa | 1

Risposto
fortran77 to matlab convert
The code from "1 continue" to "go to 1" could be translated into a while loop, something like z1 = z + 1; % initial valu...

oltre 11 anni fa | 1

| accettato

Carica altro