Respondida
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...

más de 11 años hace | 2

| aceptada

Respondida
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.

más de 11 años hace | 0

Respondida
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....

más de 11 años hace | 0

Respondida
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...

más de 11 años hace | 2

| aceptada

Respondida
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...

más de 11 años hace | 0

| aceptada

Respondida
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 ...

más de 11 años hace | 0

| aceptada

Respondida
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...

más de 11 años hace | 0

| aceptada

Respondida
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...

más de 11 años hace | 2

| aceptada

Respondida
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...

más de 11 años hace | 0

| aceptada

Respondida
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....

más de 11 años hace | 1

Respondida
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 ...

más de 11 años hace | 0

Respondida
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...

más de 11 años hace | 0

| aceptada

Respondida
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 ...

más de 11 años hace | 0

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

más de 11 años hace | 0

| aceptada

Respondida
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); ...

más de 11 años hace | 0

| aceptada

Respondida
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...

más de 11 años hace | 0

| aceptada

Respondida
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...

más de 11 años hace | 1

| aceptada

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

más de 11 años hace | 2

| aceptada

Respondida
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>.

más de 11 años hace | 2

| aceptada

Respondida
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...

más de 11 años hace | 0

Respondida
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...

más de 11 años hace | 2

| aceptada

Respondida
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.

más de 11 años hace | 0

Respondida
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...

más de 11 años hace | 3

| aceptada

Respondida
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 ...

más de 11 años hace | 2

Respondida
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...

más de 11 años hace | 0

| aceptada

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

más de 11 años hace | 0

Respondida
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...

más de 11 años hace | 1

Respondida
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...

más de 11 años hace | 0

| aceptada

Respondida
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...

más de 11 años hace | 1

Respondida
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...

más de 11 años hace | 1

| aceptada

Cargar más