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

10 years 前 | 0

| 已接受

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

10 years 前 | 0

| 已接受

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

10 years 前 | 2

| 已接受

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

10 years 前 | 0

| 已接受

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

10 years 前 | 1

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

10 years 前 | 0

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

10 years 前 | 0

| 已接受

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

10 years 前 | 0

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

10 years 前 | 0

| 已接受

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

10 years 前 | 0

| 已接受

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

10 years 前 | 0

| 已接受

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

10 years 前 | 1

| 已接受

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

10 years 前 | 2

| 已接受

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

10 years 前 | 2

| 已接受

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

10 years 前 | 0

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

10 years 前 | 2

| 已接受

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

10 years 前 | 0

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

10 years 前 | 3

| 已接受

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

10 years 前 | 2

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

10 years 前 | 0

| 已接受

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

10 years 前 | 0

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

10 years 前 | 1

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

10 years 前 | 0

| 已接受

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

10 years 前 | 1

| 已接受

已回答
Bug in matlab R2012b version
Not really an answer, but a suggestion in the light of the observations made in the question and in other answers. In general...

10 years 前 | 0

| 已接受

已回答
Function with multiple outputs and FOR loop
Note that each time w = ... is executed, the previous value of w is forgotten. So at the end of the *for* loop w and z ...

10 years 前 | 0

已回答
Save paired values from a FOR loop
You could save them in cell arrays: X{i} = J; Y{i} = PSF; or in a single cell array with two rows: X{1, i} = J; ...

10 years 前 | 1

| 已接受

已回答
Save a sequence of images in a new folder
Instead of imwrite(I2,[Resultados,num2str(k),'.png']); try imswrite(I2, fullfile(Resultados, ['SerieN', num2str(k),...

10 years 前 | 0

已回答
How can I extract only the diagonal elements of a matrix product without computing the whole product matrix?
You could use sum((a * b) .* a, 2) A check: a = rand(1000, 10); b = rand(10); max(abs(diag(a*b*a.') - sum((a*...

10 years 前 | 3

| 已接受

加载更多