Réponse apportée
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...

plus de 11 ans il y a | 0

| A accepté

Réponse apportée
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 ...

plus de 11 ans il y a | 0

Réponse apportée
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; ...

plus de 11 ans il y a | 1

| A accepté

Réponse apportée
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),...

plus de 11 ans il y a | 0

A soumis


A multidimensional map class
MapN provides a map class similar to containers.Map, but with multidimensional keys.

plus de 11 ans il y a | 1 téléchargement |

4.8 / 5

Réponse apportée
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*...

plus de 11 ans il y a | 3

| A accepté

Réponse apportée
Can mle use a non-anonymous function for a pdf?
There's no difference between a handle to an anonymous function and a handle to a function in an m-file. I can think of two p...

presque 12 ans il y a | 0

Réponse apportée
How to rename the subfolders
Please ensure that you make a backup before using this, and check that it is doing exactly what you want. I have not tested it, ...

presque 12 ans il y a | 0

| A accepté

Réponse apportée
How can I decrease image contrast using simple arithmetic?
Your code looks fine. You should almost certainly _not_ use the round function. If your image started off as values in the ra...

presque 12 ans il y a | 0

Réponse apportée
Is it possible to open COSAR file (TerraSAR-X Complex SAR Data Product)
See also <http://www.mathworks.com/matlabcentral/fileexchange/45956-terrasar-x-and-tandem-x-tools this file exchange submission>...

presque 12 ans il y a | 0

A soumis


TerraSAR-X and TanDEM-X tools
Read and convert TerraSAR-X and TanDEM-X COSAR files

presque 12 ans il y a | 1 téléchargement |

5.0 / 5

A soumis


Fast 2-D convolution
Speeds up many 2-D convolutions using the SVD; also finds a fast approximation in other cases.

presque 12 ans il y a | 2 téléchargements |

5.0 / 5

Réponse apportée
Parsing default function arguments: why isn't it better???
The main tool MATLAB offers to handle optional arguments would look like this in your example: function fff(arg1,arg2,varar...

presque 12 ans il y a | 0

Réponse apportée
Impulse response of filter in image processing
Apply your filter to an impulse and look at the respnse. Assuming that your filter's spatial size is no greater than 2*d in e...

environ 12 ans il y a | 0

| A accepté

A soumis


Canny edge detection in 2-D and 3-D
A Canny edge detector for two-dimensional image and three-dimensional volume data.

environ 12 ans il y a | 5 téléchargements |

4.9 / 5
Thumbnail

Réponse apportée
How do I calculate gradient and hessian matrix by two operators?
On the first part of your question, I think you should not call gradient, because convolution with the operators is what calcula...

environ 12 ans il y a | 0

Réponse apportée
WHAT DOES THIS STATEMENT MEAN gray_average_2d(1:m,1:n) = gray_average(1,1:m,1:n);?
It means that for every i and j gray_average_2d(i, j) = gray_average(1, i, j); provided that i >= 1 and i <= m and j >= ...

environ 12 ans il y a | 0

Réponse apportée
matrix convertion and reconvertion
To convert a into b, you can write b(1,1) = a(1,3); b(2,1) = a(3,3); ... and so on. To convert back, use a(1,...

environ 12 ans il y a | 0

Réponse apportée
How to perform closing and filling
If you have the image processing toolbox, use strel, imclose and imfill. Also look at bwareaopen. You can apply this to the c...

environ 12 ans il y a | 0

| A accepté

Réponse apportée
What's on your personal MATLAB to-do list?
Write my own version of imshow (from the Image Processing Toolbox) so I have it under control and don't get unexpected things ha...

environ 12 ans il y a | 0

Réponse apportée
Extracting values from one column by specifying range for two other columns
Using A to refer to your matrix, try x = A(:, 3); y = A(:, 4); ok = -32.5 <= x & x <= 40 & 54.5 <= y & y <= 62.5; ...

environ 12 ans il y a | 0

| A accepté

Réponse apportée
I got image artifacts on left and top edges of the image in result.
The problem is with snn12.m, which leaves two columns of zeros at the left of the image and two rows of zeros at the top. Thr...

environ 12 ans il y a | 0

Réponse apportée
How to solve this error: Error code "Undefined function 'select' for input arguments of type 'char'"?
It looks as if you're typing SQL to the MATLAB prompt. You need to use an SQL interpreter, not MATLAB.

environ 12 ans il y a | 0

Réponse apportée
How to get onclick coordinate pixel value and location from an image?
Use ginput If you want to record multiple points, you can use something like the function that follows. You can easily modify...

environ 12 ans il y a | 10

| A accepté

Réponse apportée
multiplication of infinity by zero in Matlab Calculation
So x contains infinities and y contains zeros and we are willing to assume from knowledge of the earlier computation that when a...

environ 12 ans il y a | 1

Réponse apportée
How to determine if there is a value in a string and output it as a boolean?
I think you just want if A(a) == 1 % actions end

environ 12 ans il y a | 0

Réponse apportée
Clearing the upper section of a 3-dimensional matrix
Try Bt = permute(B, [3 2 1]); mask = bsxfun(@ge, Bt, (1:size(A,1)).'); C = A; C(mask) = 0;

environ 12 ans il y a | 0

| A accepté

Réponse apportée
how to traverse a multidimensional array
Maybe I'm oversimplifying the problem, but if I've understood the pseudocode this should work: n = ndims(A); s = cell(1,...

environ 12 ans il y a | 0

A résolu


Create a row array using double colon operator
Create a row array from 9 to 1, using the double colon operator.

environ 12 ans il y a

A résolu


Flip the bit
Given an input character string (e.g. '1001'), return a character string with the bits flipped ('0110').

environ 12 ans il y a

Charger plus