Réponse apportée
Gaussian Filter Terminology - sigma, kernal
You got it wrong. Sigma determines the width of the Gaussian. The larger sigma, the more values you need to sample the Gaussian ...

plus de 13 ans il y a | 0

Réponse apportée
Creating a function with a logical output.
There's nothing wrong with your function, you can just do it more concisely function output = TLU( inputs, weights, thresho...

plus de 13 ans il y a | 0

| A accepté

Réponse apportée
quantify difference between discrete distributions
Use the Two-sample Kolmogorov-Smirnov test from the Statistics Toolbox.

plus de 13 ans il y a | 0

| A accepté

Réponse apportée
how to save the image
imwrite(nim, 'newimage.png');

plus de 13 ans il y a | 0

Réponse apportée
find the location of minimum value
That's easy X = rand(4, 4, 4, 4); [val ind] = min(X(:));

plus de 13 ans il y a | 1

Réponse apportée
I have divided one image into subimages--how can I show the subimages lined up near each other?
This implements suggestion #4 of Image Analyst. I = imread('peppers.png'); I = im2double(I); Nsubimages = [4 3]; ...

plus de 13 ans il y a | 0

| A accepté

Réponse apportée
Plotting of a function of 3 variables
One way is to look at 3 cross-sections along the main axis for i = 1:50:100 mesh(V(:, :, i), 'EdgeColor', 'k') if i ==...

plus de 13 ans il y a | 0

Réponse apportée
ttest : independent and dependent samples
If the two groups contain data from the same sample both groups are not independent. You can use paired-sample t-test if you hav...

plus de 13 ans il y a | 0

| A accepté

Réponse apportée
How to select a number of points from a 2D matlab plot?
ginput does this job.

plus de 13 ans il y a | 0

| A accepté

Réponse apportée
Removing cell arrays from code
Yes.

plus de 13 ans il y a | 1

| A accepté

Réponse apportée
How can i find the position of a subimage in larger image ?
F = im2double(imread('cameraman.tif')); I = rand(512); I([1:size(F,1)] + 30, [1:size(F,2)] + 80) = F; disp('Search targ...

plus de 13 ans il y a | 0

| A accepté

Réponse apportée
Plot markers around the perimeter of a shape
Draw sample contour (e.g, a circle) th = linspace(0, 2*pi); x = cos(th); y = sin(th); plot(x, y, 'k-') Draw N...

plus de 13 ans il y a | 0

| A accepté

Réponse apportée
??? Index exceeds matrix dimensions.
Probably you have defined a variable distance that shadows the function distance. You can check that by using which distan...

plus de 13 ans il y a | 1

Réponse apportée
How can I use a loop to subtract a pixel's gray level to it´s neighbor pixel's gray level?
I = im2double(imread('cameraman.tif')); Ix = diff(I')'; Iy = diff(I);

plus de 13 ans il y a | 0

| A accepté

Réponse apportée
How to get the value of 'x' from a figure?
Depending on what you need, try xlim or get(gca, 'XTick')

plus de 13 ans il y a | 0

Réponse apportée
element wise concatenation of square matrices
Like this? C = arrayfun(@(x) ['<' num2str(A(x)) ',' num2str(B(x)) '>'], 1:numel(A), 'un', 0); C = reshape(C, [3 3]);

plus de 13 ans il y a | 0

Réponse apportée
How can I resolve this problem using vertcat on matrices for daily files to create a single matrix for the whole year?
importdata returns a structure, not a matrix; whos newData1

plus de 13 ans il y a | 0

Réponse apportée
I want to divide the 360 degree hue circle into 10 equal sector
Ncolors = 10; I = imread('peppers.png'); HSV = rgb2hsv(I); H = HSV(:,: ,1); Hnew = zeros(size(H)); delta ...

plus de 13 ans il y a | 0

Réponse apportée
How to find the center point in this plot?
x = rand(1,100); y = rand(1,100); plot(x, y, 'r*') hold on plot(mean(x), mean(y), 'k*', 'MarkerSize', 20)

plus de 13 ans il y a | 0

Réponse apportée
seconds from the clock function?
c = clock; seconds = c(6)

plus de 13 ans il y a | 0

| A accepté

Réponse apportée
How to paste or add an image of smaller size to a blank frame of bigger size
I = imread('cameraman.tif'); I = im2double(imresize(I, 0.2)); E = ones(300); E([1:size(I,1)] + 40, [1:size(I,2)] + 120) =...

plus de 13 ans il y a | 0

| A accepté

Réponse apportée
Help on string in .m file
Nfiles = 100; for i = 1:Nfiles matfile = ['B0E ' int2str(i)]; load(matfile) eval(['f' int2str(i) '(:, :, 1) =...

plus de 13 ans il y a | 1

| A accepté

Réponse apportée
Make a polar plot from data
theta = pi*rand(1, 100); th = linspace(pi/10, pi, 10); hi = hist(theta, th); polar(th, hi/numel(theta))

plus de 13 ans il y a | 0

| A accepté

Réponse apportée
How to select specific row in a matrix
X = rand(100, 13); ind0 = 1:5; ind1 = ind0; for i = 1:4, ind1 = [ind1 ind0 + 20*i]; end ind2 = setdiff(1:100, ind1); ...

plus de 13 ans il y a | 0

Réponse apportée
Make a polar plot from data
theta = acos(nz); rose(theta)

plus de 13 ans il y a | 0

Réponse apportée
Image patching for computing Guassian Kernel
I = im2double(imread('cameraman.tif')); Gsk = fspecial('gaussian',[12 12],3); Idxy = I - imfilter(I, Gsk);

plus de 13 ans il y a | 0

Réponse apportée
passing lots of variables between function efficiently?
Instead of writing statements like nelx = Prob.nelx; nely = Prob.nely; You can do your computations on Prob.nelx and ...

plus de 13 ans il y a | 1

Réponse apportée
ommiting blanks in a string
s = [' hallo a b c'; 'asdsdf v vvvv ']; for i = 1:size(s, 1) disp(s(i, setdiff(1:length(s(i,:)), findstr(' ', s(i...

plus de 13 ans il y a | 0

Réponse apportée
variables in m files
Define function function A B C = myfunction(d, p, t) FC = 360; A = (hex2dec(d)*0.5*FC/2^18); B = (hex2dec(p)*0.5*FC/2^...

plus de 13 ans il y a | 0

Réponse apportée
Concatenating 'mat' files into a single file
First load the file, assuming that each file contains a variable same as its filename, so after load A you have variable A in yo...

plus de 13 ans il y a | 0

Charger plus